From 5042e560efa672cf89331ccf0cd1fd2817ea8bdb Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 8 Jun 2020 21:25:16 +0200 Subject: LibJS: Make more Interpreter functions take a GlobalObject& --- Libraries/LibJS/Runtime/ScriptFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Libraries/LibJS/Runtime/ScriptFunction.cpp') diff --git a/Libraries/LibJS/Runtime/ScriptFunction.cpp b/Libraries/LibJS/Runtime/ScriptFunction.cpp index 262f9b288d..1849faf386 100644 --- a/Libraries/LibJS/Runtime/ScriptFunction.cpp +++ b/Libraries/LibJS/Runtime/ScriptFunction.cpp @@ -120,7 +120,7 @@ Value ScriptFunction::call(Interpreter& interpreter) arguments.append({ parameter.name, value }); interpreter.current_environment()->set(parameter.name, { value, DeclarationKind::Var }); } - return interpreter.run(m_body, arguments, ScopeType::Function); + return interpreter.run(global_object(), m_body, arguments, ScopeType::Function); } Value ScriptFunction::construct(Interpreter& interpreter) -- cgit v1.2.3