diff --git a/Libraries/LibJS/AST.cpp b/Libraries/LibJS/AST.cpp index d8af41531c..c451014084 100644 --- a/Libraries/LibJS/AST.cpp +++ b/Libraries/LibJS/AST.cpp @@ -47,7 +47,7 @@ Value FunctionDeclaration::execute(Interpreter& interpreter) const { auto* function = interpreter.heap().allocate(body(), parameters()); interpreter.set_variable(name(), function); - return function; + return {}; } Value FunctionExpression::execute(Interpreter& interpreter) const