diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/ScriptFunction.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/ScriptFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/ScriptFunction.cpp b/Libraries/LibJS/Runtime/ScriptFunction.cpp index 7c3b461649..d18718dd53 100644 --- a/Libraries/LibJS/Runtime/ScriptFunction.cpp +++ b/Libraries/LibJS/Runtime/ScriptFunction.cpp @@ -133,7 +133,7 @@ Value ScriptFunction::call(Interpreter& interpreter) return interpreter.run(global_object(), m_body, arguments, ScopeType::Function); } -Value ScriptFunction::construct(Interpreter& interpreter) +Value ScriptFunction::construct(Interpreter& interpreter, Function&) { if (m_is_arrow_function) return interpreter.throw_exception<TypeError>(ErrorType::NotAConstructor, m_name.characters()); |