summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/ScriptFunction.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-08 21:25:16 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-08 21:25:16 +0200
commit5042e560efa672cf89331ccf0cd1fd2817ea8bdb (patch)
tree35c0debaba3a4bd3ea00a4f7b88cc631bd88c2f9 /Libraries/LibJS/Runtime/ScriptFunction.cpp
parent053863f35ee0934f34c9a565099410c917463702 (diff)
downloadserenity-5042e560efa672cf89331ccf0cd1fd2817ea8bdb.zip
LibJS: Make more Interpreter functions take a GlobalObject&
Diffstat (limited to 'Libraries/LibJS/Runtime/ScriptFunction.cpp')
-rw-r--r--Libraries/LibJS/Runtime/ScriptFunction.cpp2
1 files changed, 1 insertions, 1 deletions
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)