mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02:00
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.
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 04:11:25 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/2b8d5696abd Pull-request: https://github.com/SerenityOS/serenity/pull/9980 Reviewed-by: https://github.com/awesomekling ✅
@@ -326,7 +326,7 @@ inline JSFileResult TestRunner::run_file_test(const String& test_path)
|
||||
}
|
||||
}
|
||||
|
||||
JS::Bytecode::Interpreter bytecode_interpreter(interpreter->global_object());
|
||||
JS::Bytecode::Interpreter bytecode_interpreter(interpreter->global_object(), interpreter->realm());
|
||||
bytecode_interpreter.run(unit);
|
||||
} else {
|
||||
interpreter->run(interpreter->global_object(), *m_test_program);
|
||||
@@ -348,7 +348,7 @@ inline JSFileResult TestRunner::run_file_test(const String& test_path)
|
||||
}
|
||||
}
|
||||
|
||||
JS::Bytecode::Interpreter bytecode_interpreter(interpreter->global_object());
|
||||
JS::Bytecode::Interpreter bytecode_interpreter(interpreter->global_object(), interpreter->realm());
|
||||
bytecode_interpreter.run(unit);
|
||||
} else {
|
||||
interpreter->run(interpreter->global_object(), *file_program.value());
|
||||
|
||||
Reference in New Issue
Block a user