mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
LibJS: Convert perform_eval to ThrowCompletionOr
This commit is contained in:
parent
e24d4c346d
commit
1da8faebf5
Notes:
sideshowbarker
2024-07-18 03:34:20 +09:00
Author: https://github.com/IdanHo
Commit: 1da8faebf5
Pull-request: https://github.com/SerenityOS/serenity/pull/10169
Reviewed-by: https://github.com/linusg ✅
4 changed files with 15 additions and 9 deletions
|
@ -430,7 +430,7 @@ JS_DEFINE_NATIVE_FUNCTION(GlobalObject::parse_int)
|
|||
// 19.2.1 eval ( x ), https://tc39.es/ecma262/#sec-eval-x
|
||||
JS_DEFINE_NATIVE_FUNCTION(GlobalObject::eval)
|
||||
{
|
||||
return perform_eval(vm.argument(0), global_object, CallerMode::NonStrict, EvalMode::Indirect);
|
||||
return TRY_OR_DISCARD(perform_eval(vm.argument(0), global_object, CallerMode::NonStrict, EvalMode::Indirect));
|
||||
}
|
||||
|
||||
// 19.2.6.1.1 Encode ( string, unescapedSet ), https://tc39.es/ecma262/#sec-encode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue