summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-04-22 19:10:27 +0100
committerLinus Groh <mail@linusgroh.de>2022-05-08 17:12:27 +0200
commit77ba3d3e3f6a4b6f523c0bf2047ef89bcd08d970 (patch)
treebaa626d04f28d6270d77d889935af74f078252c2 /Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
parenta0a4d169f47e03802b885bf16c997281313ec8e1 (diff)
downloadserenity-77ba3d3e3f6a4b6f523c0bf2047ef89bcd08d970.zip
LibJS: Remove callerRealm from HostEnsureCanCompileStrings
This is a normative change in the ecma262 spec. See: https://github.com/tc39/ecma262/commit/2527be4
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/GlobalObject.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/GlobalObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp b/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
index 5190f5845c..cb49d5ed39 100644
--- a/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
+++ b/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
@@ -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