summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-08-16 19:28:17 +0100
committerLinus Groh <mail@linusgroh.de>2022-08-23 13:58:30 +0100
commit5398dcc55e1b8279f6b3edf62ad249a27b4f2f64 (patch)
tree5ff1f269368c873e9c9618b55b1b5a1eebbbf4b4 /Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp
parente992a9f469a536b5a5442229a1adddd27deb1db9 (diff)
downloadserenity-5398dcc55e1b8279f6b3edf62ad249a27b4f2f64.zip
LibJS: Remove GlobalObject from execute() and related AST functions
This is a continuation of the previous four commits. Passing a global object here is largely redundant, we definitely need the interpreter but can get the VM and (later) current active realm from there - and also the global object while we still need it, although I'd like to remove Interpreter::global_object() in the future. This now matches the bytecode interpreter's execute_impl() functions.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp
index 1ae9bdf066..ef15c210b6 100644
--- a/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp
+++ b/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp
@@ -712,7 +712,7 @@ ThrowCompletionOr<Value> perform_eval(GlobalObject& global_object, Value x, Call
eval_result = result;
} else {
auto& ast_interpreter = vm.interpreter();
- eval_result = TRY(program->execute(ast_interpreter, global_object));
+ eval_result = TRY(program->execute(ast_interpreter));
}
// 30. If result.[[Type]] is normal and result.[[Value]] is empty, then