1
Fork 0
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:
Andreas Kling 2020-09-21 13:48:34 +02:00
parent fbe2907510
commit b7ce0680dd

View file

@ -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()) {