diff options
Diffstat (limited to 'Libraries/LibJS/Interpreter.cpp')
-rw-r--r-- | Libraries/LibJS/Interpreter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibJS/Interpreter.cpp b/Libraries/LibJS/Interpreter.cpp index 0a49fb5cea..10b3495a89 100644 --- a/Libraries/LibJS/Interpreter.cpp +++ b/Libraries/LibJS/Interpreter.cpp @@ -65,7 +65,7 @@ Value Interpreter::run(const Statement& statement, ArgumentVector arguments, Sco } if (!statement.is_scope_node()) - return statement.execute(*this); + return statement.execute(*this, global_object()); auto& block = static_cast<const ScopeNode&>(statement); enter_scope(block, move(arguments), scope_type); @@ -74,7 +74,7 @@ Value Interpreter::run(const Statement& statement, ArgumentVector arguments, Sco m_last_value = js_undefined(); for (auto& node : block.children()) { - m_last_value = node.execute(*this); + m_last_value = node.execute(*this, global_object()); if (should_unwind()) { if (should_unwind_until(ScopeType::Breakable, block.label())) stop_unwind(); |