mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 05:27:35 +00: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:
parent
d9c3bafcd9
commit
2b8d5696ab
8 changed files with 54 additions and 10 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue