mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibJS: Remove callerRealm from HostEnsureCanCompileStrings
This is a normative change in the ecma262 spec. See: https://github.com/tc39/ecma262/commit/2527be4
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 11:08:16 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/77ba3d3e3f Pull-request: https://github.com/SerenityOS/serenity/pull/13773 Reviewed-by: https://github.com/linusg ✅
@@ -489,7 +489,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 perform_eval(global_object, vm.argument(0), CallerMode::NonStrict, EvalMode::Indirect);
|
||||
}
|
||||
|
||||
// 19.2.6.1.1 Encode ( string, unescapedSet ), https://tc39.es/ecma262/#sec-encode
|
||||
|
||||
Reference in New Issue
Block a user