From b7ce0680ddf1cb7135874eefa8ab5d75e9af2850 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 21 Sep 2020 13:48:34 +0200 Subject: [PATCH] test-web: Keep the Interpreter on the VM interpreter stack during test --- Userland/test-web.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/test-web.cpp b/Userland/test-web.cpp index f2fffe21dd..c17a4aeadb 100644 --- a/Userland/test-web.cpp +++ b/Userland/test-web.cpp @@ -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()) {