mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
LibJS: Set arguments_object_needed = false if scope_body == nullptr
For obvious reasons.
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 03:02:40 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/fcb355f193b Pull-request: https://github.com/SerenityOS/serenity/pull/10365 Reviewed-by: https://github.com/IdanHo ✅ Reviewed-by: https://github.com/awesomekling ✅
@@ -186,6 +186,8 @@ ThrowCompletionOr<void> ECMAScriptFunctionObject::function_declaration_instantia
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
}
|
||||
} else {
|
||||
arguments_object_needed = false;
|
||||
}
|
||||
|
||||
Environment* environment;
|
||||
|
||||
Reference in New Issue
Block a user