mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
LibJS: Convert initialize_binding() to ThrowCompletionOr
Also add spec step comments to it while we're here.
This commit is contained in:
parent
2691c65639
commit
ae397541fb
12 changed files with 50 additions and 36 deletions
|
@ -178,7 +178,7 @@ ThrowCompletionOr<void> VM::destructuring_assignment_evaluation(NonnullRefPtr<Bi
|
|||
ThrowCompletionOr<void> VM::binding_initialization(FlyString const& target, Value value, Environment* environment, GlobalObject& global_object)
|
||||
{
|
||||
if (environment) {
|
||||
environment->initialize_binding(global_object, target, value);
|
||||
MUST(environment->initialize_binding(global_object, target, value));
|
||||
return {};
|
||||
}
|
||||
auto reference = resolve_binding(target);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue