mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +00:00
test-web: Keep the Interpreter on the VM interpreter stack during test
This commit is contained in:
parent
fbe2907510
commit
b7ce0680dd
1 changed files with 3 additions and 0 deletions
|
@ -304,6 +304,9 @@ JSFileResult TestRunner::run_file_test(const String& test_path)
|
|||
ASSERT(m_page_view->document());
|
||||
auto& old_interpreter = m_page_view->document()->interpreter();
|
||||
|
||||
// FIXME: This is a hack while we're refactoring Interpreter/VM stuff.
|
||||
JS::VM::InterpreterExecutionScope scope(old_interpreter);
|
||||
|
||||
if (!m_js_test_common) {
|
||||
auto result = parse_file(String::format("%s/test-common.js", m_js_test_root.characters()));
|
||||
if (result.is_error()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue