mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
LibJS: Make GetIterator's hint parameter required
This is an editorial change in the ECMA-262 spec. See:
2562811
This commit is contained in:
parent
5703833116
commit
1760361304
Notes:
sideshowbarker
2024-07-17 05:21:12 +09:00
Author: https://github.com/trflynn89
Commit: 1760361304
Pull-request: https://github.com/SerenityOS/serenity/pull/20091
7 changed files with 25 additions and 26 deletions
|
@ -337,8 +337,8 @@ ThrowCompletionOr<void> VM::binding_initialization(NonnullRefPtr<BindingPattern
|
|||
}
|
||||
// BindingPattern : ArrayBindingPattern
|
||||
else {
|
||||
// 1. Let iteratorRecord be ? GetIterator(value).
|
||||
auto iterator_record = TRY(get_iterator(vm, value));
|
||||
// 1. Let iteratorRecord be ? GetIterator(value, sync).
|
||||
auto iterator_record = TRY(get_iterator(vm, value, IteratorHint::Sync));
|
||||
|
||||
// 2. Let result be Completion(IteratorBindingInitialization of ArrayBindingPattern with arguments iteratorRecord and environment).
|
||||
auto result = iterator_binding_initialization(*target, iterator_record, environment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue