mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +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
Notes:
sideshowbarker
2024-07-18 02:52:24 +09:00
Author: https://github.com/linusg
Commit: ae397541fb
Pull-request: https://github.com/SerenityOS/serenity/pull/10413
Reviewed-by: https://github.com/IdanHo ✅
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