Ver Fonte

LibJS: Set arguments_object_needed = false if scope_body == nullptr

For obvious reasons.
Linus Groh há 3 anos atrás
pai
commit
fcb355f193

+ 2 - 0
Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp

@@ -186,6 +186,8 @@ ThrowCompletionOr<void> ECMAScriptFunctionObject::function_declaration_instantia
                 return IterationDecision::Continue;
             });
         }
+    } else {
+        arguments_object_needed = false;
     }
 
     Environment* environment;