mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibJS: Convert has_binding() to ThrowCompletionOr
Also add spec step comments to it while we're here.
This commit is contained in:
@@ -357,7 +357,7 @@ ThrowCompletionOr<void> ECMAScriptFunctionObject::function_declaration_instantia
|
||||
}
|
||||
|
||||
for (auto const& parameter_name : parameter_names) {
|
||||
if (environment->has_binding(parameter_name))
|
||||
if (MUST(environment->has_binding(parameter_name)))
|
||||
continue;
|
||||
|
||||
environment->create_mutable_binding(global_object(), parameter_name, false);
|
||||
|
||||
Reference in New Issue
Block a user