diff options
author | Linus Groh <mail@linusgroh.de> | 2021-09-11 19:36:25 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-12 11:10:20 +0100 |
commit | 2b8d5696abd595f64927bd756c76a0366f15d4b7 (patch) | |
tree | 21f8f153fcba6a5af8b5905dfefabff052dcce5c /Userland/Utilities | |
parent | d9c3bafcd9997ef49925af13dca2c9db3a13df44 (diff) | |
download | serenity-2b8d5696abd595f64927bd756c76a0366f15d4b7.zip |
LibJS: Allocate a Realm next to GlobalObject in Interpreter::create()
Also pass a Realm reference to the Bytecode::Interpreter constructor,
just like we pass the GlobalObject.
Diffstat (limited to 'Userland/Utilities')
-rw-r--r-- | Userland/Utilities/js.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp index 25dd94ef7b..75b2d4cb0e 100644 --- a/Userland/Utilities/js.cpp +++ b/Userland/Utilities/js.cpp @@ -830,7 +830,7 @@ static bool parse_and_run(JS::Interpreter& interpreter, StringView const& source } if (s_run_bytecode) { - JS::Bytecode::Interpreter bytecode_interpreter(interpreter.global_object()); + JS::Bytecode::Interpreter bytecode_interpreter(interpreter.global_object(), interpreter.realm()); bytecode_interpreter.run(unit); } else { return true; |