From 2b8d5696abd595f64927bd756c76a0366f15d4b7 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 11 Sep 2021 19:36:25 +0100 Subject: 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. --- Userland/Utilities/js.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Utilities') 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; -- cgit v1.2.3