summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-08-22 19:35:23 +0100
committerLinus Groh <mail@linusgroh.de>2022-08-23 13:58:30 +0100
commit275dea9d98a147e891b95f054c74c8198478a223 (patch)
tree566c86470b09ec5a15bb0760e77b1776b515796d /Tests
parentb345a0acca725d1b4e4d6df26fc602d69e97f073 (diff)
downloadserenity-275dea9d98a147e891b95f054c74c8198478a223.zip
LibJS: Remove {Bytecode::,}Interpreter::global_object()
The basic idea is that a global object cannot just come out of nowhere, it must be associated to a realm - so get it from there, if needed. This is to enforce the changes from all the previous commits by not handing out global objects unless you actually have an initialized realm (either stored somewhere, or the VM's current realm).
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LibJS/test-bytecode-js.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/LibJS/test-bytecode-js.cpp b/Tests/LibJS/test-bytecode-js.cpp
index 07f27b2808..90fe6acdf8 100644
--- a/Tests/LibJS/test-bytecode-js.cpp
+++ b/Tests/LibJS/test-bytecode-js.cpp
@@ -20,7 +20,7 @@
\
auto script = script_or_error.release_value(); \
auto const& program = script->parse_node(); \
- JS::Bytecode::Interpreter bytecode_interpreter(ast_interpreter->global_object(), ast_interpreter->realm());
+ JS::Bytecode::Interpreter bytecode_interpreter(ast_interpreter->realm());
#define EXPECT_NO_EXCEPTION(executable) \
auto executable = MUST(JS::Bytecode::Generator::generate(program)); \