mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-16 23:39:44 +00:00
LibJS: Make ParserError::to_string infallible
This commit is contained in:
parent
d568b15acf
commit
0090b916dd
Notes:
sideshowbarker
2024-07-16 21:51:02 +09:00
Author: https://github.com/shannonbooth
Commit: 0090b916dd
Pull-request: https://github.com/SerenityOS/serenity/pull/23817
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/trflynn89
11 changed files with 17 additions and 17 deletions
|
@ -100,7 +100,7 @@ JS_DEFINE_NATIVE_FUNCTION($262Object::eval_script)
|
|||
auto& error = script_or_error.error()[0];
|
||||
|
||||
// b. Return Completion { [[Type]]: throw, [[Value]]: error, [[Target]]: empty }.
|
||||
return vm.throw_completion<SyntaxError>(TRY_OR_THROW_OOM(vm, error.to_string()));
|
||||
return vm.throw_completion<SyntaxError>(error.to_string());
|
||||
}
|
||||
|
||||
// 5. Let status be ScriptEvaluation(s).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue