diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-init-iter-close.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-init-iter-close.js index c9b56db4b6529d68dba46c4677d29d9719101d3d..7295a3e9daaa9bb32ef65f11dcf761feda9607f0 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-init-iter-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-init-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-close.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-init-iter-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Iterator is closed when not exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: false }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-init-iter-get-err.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-init-iter-get-err.js index 7f74d1b2721503ad1941b9d1ded04dc74e8eb00d..fe4066561b72046ce758b24a8d530c3afadd0efc 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-init-iter-get-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-init-iter-get-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-get-err.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-init-iter-get-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Abrupt completion returned by GetIterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -39,8 +39,7 @@ info: | BindingPattern : ArrayBindingPattern - 1. Let iterator be GetIterator(value). - 2. ReturnIfAbrupt(iterator). + 1. Let iterator be ? GetIterator(value). ---*/ var iter = {}; @@ -55,6 +54,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-init-iter-no-close.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-init-iter-no-close.js index cc61e9a191274c741dcd0d2085040d00774445e0..1d59880139df2a88d0cb1c47f674a3ae0eb84b9a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-init-iter-no-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-init-iter-no-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-no-close.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-init-iter-no-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Iterator is not closed when exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: true }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-name-iter-val.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-name-iter-val.js index 5ecfc3def1b3b6c5f33e626810f54e3927089f6c..a7e2641ea9283ae5d809de4f1fbb984f79046e9b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-name-iter-val.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-name-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-name-iter-val.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-name-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: SingleNameBinding with normal value iteration (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elem-init.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elem-init.js index ebb2390f9b62f37e46f2e2d51f821724da3df865..26d410f7a7108f2c2b5e9bd663e69c507b406f9c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elem-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elem-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-init.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elem-iter.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elem-iter.js index 804b6f009f4a6df40de0752cfc3fc8fc36d15244..3abc7c7f75b44cbbf53310289c1494186f5fa14b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elem-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elem-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-iter.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elision-init.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elision-init.js index 50c630be799e4477e9dac75d3c5df9f2ebb13381..6ba7b8043534aaf644f0f922c40d0e687c315863 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elision-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elision-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elision-iter.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elision-iter.js index 6e38728548af509cbb82a49426e0f5bd3230adbc..39763683bf14c8d80786bfc51eba13578293b40e 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elision-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elision-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-iter.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-empty-init.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-empty-init.js index 2ad358d4fd955013349facce547fcfd51cbaad10..a5f98b2dce3d7bbfcf41881dd5b246c0d4fdab83 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-empty-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-empty-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-init.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-empty-iter.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-empty-iter.js index 9944b961b92ed882f81b86fb58757c94699a2cbc..7bd670b4f00b2733b5a43fbb31b6e6b4b178aa31 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-empty-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-empty-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-iter.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-rest-init.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-rest-init.js index 54921b6a805a99a0894dabf886916d3006706e2e..1ed5e5dce3ee4a7e7c192755cea3a9c420aafbf8 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-rest-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-rest-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-init.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-rest-iter.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-rest-iter.js index 924fd122b05700be9107e5c192b9beb6be3cea00..a7d875e5b6fcab645a119234d1d3f41e3645fdf2 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-rest-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-rest-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-iter.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-val-null.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-val-null.js index 219497ed10e7139eafba832d1e136c151a13e4ab..d9ae1b657b7a613accfb7a3595c80ce99139d070 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-val-null.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-val-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-val-null.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-val-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Nested array destructuring with a null value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -51,8 +51,7 @@ info: | BindingPattern : ArrayBindingPattern - 1. Let iterator be GetIterator(value). - 2. ReturnIfAbrupt(iterator). + 1. Let iterator be ? GetIterator(value). ---*/ async function fn() { @@ -62,6 +61,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-exhausted.js index 3bce739aa7d056ddead371f0a69bb25d6fbf1b6f..bb30ac05131594d56a947a6d6a1595a7cf2ea05d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Destructuring initializer with an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,16 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. - 6. If Initializer is present and v is undefined, then + 4. If iteratorRecord.[[done]] is true, let v be undefined. + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-arrow.js index f738e43e5e6422d095d4453b9035e40c5062bda0..5b95e079d3ad174b099d6c3ec698bef24a54a3c4 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: SingleNameBinding does assign name to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-class.js index 6b4dc0b82f555ecdf41cddb0a0801f70449ad465..600e12d80d139a7757979d3bf84a4d498b0ff704 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-cover.js index 84527569eb169229223aa6f83173b38a1396f871..b9d65faebc60f32359bdfd1bd87044cd0e2d9314 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-fn.js index 9d41ba05ecfb1b70f95cabf5587f88e005c9e76c..30d7575aafb9e648125e06b5985f8c14b8eb433e 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-gen.js index 79fa43eaf6419a0dca46df7490659993fac36d9c..cea862e75dc43c05238a4cceb9b0005313088597 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-hole.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-hole.js index b7de310bd134f9dacdb019ab8341f2ff8f5e6d5b..b6eb13567d4c29301bbd3905adca99885230f62d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-hole.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-hole.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-hole.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-hole.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Destructuring initializer with a "hole" (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -36,12 +36,12 @@ info: | [...] 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt - [...] 6. If Initializer is present and v is undefined, then + SingleNameBinding : BindingIdentifier Initializer_opt + [...] 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-skipped.js index 7fff360bc0394d1d170817850cf4f65d592b2c44..facf7379ebf4a7e3807939d1e326eaf5ec304443 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,13 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then [...] 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var initCount = 0; function counter() { diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-throws.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-throws.js index 18831cbb6bdac9de455984f72f9da5e42661dd68..ab94b0e7d8a83337421b772b1cc29ba8fd5f3722 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-throws.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Destructuring initializer returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,12 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). ---*/ async function fn() { @@ -53,6 +52,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-undef.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-undef.js index 47379aacaf295e86f54c9757b5714b571d64703c..c01f1fa09c1b6af9c5d1035cfbc4169ce2f747ae 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-undef.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-undef.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-undef.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Destructuring initializer with an undefined value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,15 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-unresolvable.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-unresolvable.js index 958f04ee32bce6a3082019eb4c8f511e9e467e5e..a39603b323042424d852ee0c80bef47540fc3766 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,6 +59,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-complete.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-complete.js index 33acb8e557247864b34341bfdedb240bbbd50213..abc29dea7ebd05abbc121785b33d9dc00b64f474 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-complete.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-complete.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-complete.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-complete.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: SingleNameBinding when value iteration completes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,19 +37,19 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-done.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-done.js index c66b20bc014cd14bb49b8a7014ce818d97c0acd5..67bd79217e59606c2e8168adde7d6caabcf55f7b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-done.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-done.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-done.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-done.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,14 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-step-err.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-step-err.js index 5c390f79c90f5942548874f515412c0f9e5183ae..db266b4e1b0364fed5890eeb96e1503aab4564da 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-step-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-step-err.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Error forwarding when IteratorStep returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). @@ -48,7 +48,7 @@ info: | var g = {}; g[Symbol.iterator] = function() { return { - next: function() { + next() { throw new Test262Error(); } }; @@ -61,6 +61,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-val-err.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-val-err.js index d87b1a3bf400e3dc2a2e277790e218dfe73b8076..e8a35760a87bc27def55a921ae20a27e677c847f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-val-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-val-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val-err.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Error forwarding when IteratorValue returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). @@ -59,7 +59,7 @@ var poisonedValue = Object.defineProperty({}, 'value', { var g = {}; g[Symbol.iterator] = function() { return { - next: function() { + next() { return poisonedValue; } }; @@ -72,6 +72,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-val.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-val.js index 4cdfa5781b59f572a62fb6230ca2fb2ac2f9dd76..b25fabf685c56d2fec0b615f366605470ac1ed93 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-val.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-id-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-id-init.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-id-init.js index 9bf1a7af9da4c45850e7d6b2062ab81938e45aba..44b5d51e61d9474a87a249276ee7672d15d545ab 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-id.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-id.js index ed039bb39c65a1cbeef14418b0758d5ad33db817..248af59fff36a473dd2915c7283e849b0f27d998 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-prop-id-init.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-prop-id-init.js index 16cf0b1efc693693db6cb4773d86c74fe25976ec..381cbfa756effe11340020eccf2292e0da1ab28f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-prop-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-prop-id.js index 321f84675a438bbdfeb388d824d546fe911882ce..c7a38ec80201e9c12c2f2db24593d2a22cdde790 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-val-null.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-val-null.js index 1e7c84aaeb6a1d385777ae91f56b65fe0958a345..b92d34031262b0c448f5023af63dca51145bf3f9 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-val-null.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-val-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-val-null.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-val-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Nested object destructuring with a null value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -62,6 +62,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-val-undef.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-val-undef.js index 33e86e68a171e8a7ee143dbab99febc15ee56772..3d8d1770fa93e8d0ab1abe8ae0e2105a2c077b6b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-val-undef.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-obj-val-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-val-undef.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-val-undef.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Nested object destructuring with a value of `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -62,6 +62,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision-exhausted.js index 94cb3c42f9461acf01c2aefc4c89e83223f6f9d3..fcf6703d8549880080f8aba957939cb2374bdd9f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elision-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Elision accepts exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision-iter-close.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision-iter-close.js index bd274136bfaa0b0648cc1082ace61b5ce439d92d..db6bb2a2d0ca6b3d4140793348e16adb93a5c293 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision-iter-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-iter-close.case -// - src/dstr-binding/iter-close/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elision-iter-close.case +// - src/dstr-binding-for-await/iter-close/for-await-of-async-func-const.template /*--- description: The iterator is properly consumed by the destructuring pattern (for-await-of statement in an async function) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision-step-err.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision-step-err.js index b249fd2eeffb402d632557b79c09041375fbab70..e331b1f4c79abf5b5fc44a5af25c0ec43d4f457a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision-step-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-step-err.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elision-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Elision advances iterator and forwards abrupt completions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -54,7 +54,7 @@ info: | ---*/ var following = 0; -var iter =function* () { +var iter = function* () { throw new Test262Error(); following += 1; }(); @@ -66,9 +66,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + assert.sameValue(following, 0, "iterator is properly closed"); + }) .then($DONE, $DONE); - -iter.next(); -assert.sameValue(following, 0, 'Iterator was properly closed.'); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision.js index 0e4ec8f220f2939ca66183049a9ec0136a5cdfd4..22d928d0cb9f17342216a7064825498e66e26e49 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Elision advances iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-empty.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-empty.js index 53c659572e356f0cc0e72cc62195457553d8028e..59e07bcfbbb46630e0eaddc2ad5a1928593e8049 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: No iteration occurs for an "empty" array binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-elem.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-elem.js index 7a7589ec6d68fe7500beed887a9d482596f7ca73..5773970bc7d5a096b56291a026b8346e411a94f8 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-elem.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-elem.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elem.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elem.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Rest element containing an array BindingElementList pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -50,23 +50,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-elision.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-elision.js index 159a8b5317d99796059fdbad5da072daff48e5de..de0a2b97e88a7de93a9c78ea16714d48dc74bb89 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elision.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Rest element containing an elision (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-empty.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-empty.js index 4a913c596746e409c805ef883b5a7d2c74e744fd..8756778470436d86dded5dbaa544997f20f9d1e1 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-empty.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Rest element containing an "empty" array pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-rest.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-rest.js index 9216fda1da17267a48097ee1588cb18596f927b1..f16645e63c0ae2757ef744fdf10e25a7a17c22e0 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-rest.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-ary-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-rest.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Rest element containing a rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-elision-next-err.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-elision-next-err.js index d73910b70a1867c4911d38e64108dae1d323af9d..0b20e4e31c218a565ddb4864aa1ae7278918e967 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-elision-next-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-elision-next-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision-next-err.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision-next-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,6 +55,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-elision.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-elision.js index 751b17f437075cec2eb59955ecfbd4314eb77273..d5f0c50ee8f462bcafa900c94d0e5afbea16d303 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-exhausted.js index 19526cf63067c08e9e59b77913d24171aff5e5c8..93af5a5883c3cab4b33edfcee8cbf4369bbd0861 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: RestElement applied to an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-iter-close.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-iter-close.js index 4056efeb46f28d5f019c9dfc5264bbb189a69da6..1b97581d1c4c7ae7b4a6974545bbfc41f6366c2a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-iter-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-close.case -// - src/dstr-binding/iter-close/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-close.case +// - src/dstr-binding-for-await/iter-close/for-await-of-async-func-const.template /*--- description: The iterator is properly consumed by the destructuring pattern (for-await-of statement in an async function) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-iter-step-err.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-iter-step-err.js index c29c514b9f7d67a92c433a06f34c2867c86ca8d4..5cd8a163c5014c64bfe7c881c64dd47c8162f447 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-iter-step-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-iter-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-step-err.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Error forwarding when IteratorStep returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -62,10 +62,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - -iter.next(); -assert.sameValue(first, 1); -assert.sameValue(second, 0, 'Iterator is closed following abrupt completion.'); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-iter-val-err.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-iter-val-err.js index 1392aa2984cb2f27daa09957666d455e8858284f..4403384521b4c0c79d88f8bb32685a484de1b785 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-iter-val-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id-iter-val-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-val-err.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-val-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Error forwarding when IteratorValue returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,7 +55,7 @@ var poisonedValue = Object.defineProperty({}, 'value', { var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return poisonedValue; } }; @@ -68,6 +68,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id.js index 159258c241bfadf7509059c75414667a835914d4..70a84895deccc0a52807865533f1d25d7872b6cd 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Lone rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-init-ary.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-init-ary.js index 98910ad61364aac574bd2d15919a41ce3c8ac83f..7fbc379f1655e250a35303d6d6f60bcfb9f9af61 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-init-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-init-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-ary.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Reset element (nested array pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-init-id.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-init-id.js index 8a532a9cbb80b003f8da38271bbbf8b91ec3d70e..1ba7fc28756160f0d3439c72fe5559b3822cdf81 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-init-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-init-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-id.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Reset element (identifier) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-init-obj.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-init-obj.js index 66e49cf83fba731d3d0e1aa559db2176d0aa3106..01e4f12410b151320d50c1a3e6d48446ea4ff156 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-init-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-init-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-obj.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Reset element (nested object pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-not-final-ary.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-not-final-ary.js index a6affef83820dcf9b533cc4a582caa2e47a5aea5..2bbb58986cad28a08926f836dae182fbd8926d6e 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-not-final-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-not-final-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-ary.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Rest element (array binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-not-final-id.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-not-final-id.js index e32d81521d21dd2673648afa60ccdeff3fc42e79..2c9b11373b203cb442f1011a1f452cc0e1de4939 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-not-final-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-not-final-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-id.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Rest element (identifier) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-not-final-obj.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-not-final-obj.js index 1360ad4ecf0f62404dfbfe9072289f3d8124bf1d..eeeee2da957d95ee06a881bb9d25f5b7e83871ea 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-not-final-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-not-final-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Rest element (object binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-obj-id.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-obj-id.js index d6abf9d2191e37e2751daba15752b93ec5375e2f..aa6bc98b5d3a1c4c31448b2e35fb79aeb17bb587 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-obj-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-id.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-obj-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-obj-prop-id.js index d85c53967e4360e6f06d1915ee91cb3f4fd0ecbe..a2de0e7e00728a868ea1a2faa794058ad93393cc 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-rest-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-init-iter-close.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-init-iter-close.js index eba337271a5a3b93244b5772152508b43529327c..1e456ce270f35d0cfd8031c2a0470f9577ef9d89 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-init-iter-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-init-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-close.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-init-iter-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Iterator is closed when not exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: false }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-init-iter-no-close.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-init-iter-no-close.js index 0dfc920caaabe389486d23d97bcd62f0388001b0..3ab60e87c23522403673b7483a2688dd476546d6 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-init-iter-no-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-init-iter-no-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-no-close.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-init-iter-no-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Iterator is not closed when exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: true }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-name-iter-val.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-name-iter-val.js index c6e4588bb98b12dae4da98867f39dc246ce2c250..eebd6e2f3ed4c0625b5a45dcc21e292bfa95be61 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-name-iter-val.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-name-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-name-iter-val.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-name-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: SingleNameBinding with normal value iteration (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elem-init.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elem-init.js index 21be8c7662d5d7162056b3d2226cb2899f63fa20..b9a994ef3c6934b782741b4d25be12323cee1c0e 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elem-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elem-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-init.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elem-iter.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elem-iter.js index 64d1e65efbd3b2c2c082da6813860e4df0a29c23..5315bb004795e9f7d0deff917abd56b6b67d2c8a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elem-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elem-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-iter.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elision-init.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elision-init.js index b008d06ec6cf47d056c486b903c33e1bb7ebc40f..381ec91488adcad88a2053d95ce9855ba132c2ec 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elision-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elision-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elision-iter.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elision-iter.js index 7b8ad2fccf498ceab891ad8851ae2f6eb840dfb0..697837000efde324cafc14c64c9c0e10e56eeee2 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elision-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-elision-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-iter.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-empty-init.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-empty-init.js index a7814dc91b4963e82a9e5e72572d3261c9f5a8ba..6ad9cf139a989ae791810a13adff5e9e878f7f42 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-empty-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-empty-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-init.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-empty-iter.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-empty-iter.js index 5abf021c649a5fd46ba2759a562e799e5d0b8d93..20c6f0cec6b4260c076cec7cba4f17f20582cef3 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-empty-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-empty-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-iter.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-rest-init.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-rest-init.js index f16b0775dd79b891dcbe2219e3fe39c55402cf81..193251527f58e288ab4203f9ed15c6667aa77eeb 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-rest-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-rest-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-init.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-rest-iter.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-rest-iter.js index 7b85064694daed6d16e6a7261a18058ee21e81cd..13e95cee77c3e93f1eb5a454d78b91fbcc0dfab3 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-rest-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-ary-rest-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-iter.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-exhausted.js index 744201c51f4d61c55f23729c2390f7930dde2b4c..174eadc945975045a5f9031eb43b7eef29267a76 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Destructuring initializer with an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,16 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. - 6. If Initializer is present and v is undefined, then + 4. If iteratorRecord.[[done]] is true, let v be undefined. + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-arrow.js index 073900accd940f72f2ed9dadcb549e2518cdd8cd..9c7e20a4824e8ff7e3d8f9e2f05b4805ecaf3cf2 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: SingleNameBinding does assign name to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-class.js index e544004cdb512090bd6e8b075d154ecf5913a392..7c5db4e9dfe7429ee2f5b9efc3d9457b399fab96 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-cover.js index 8ec716384bb1fc4a5d44641cd26f034842bc5b6f..65258e7d01ecf9a91f0d7c5740ca2ee0765a3aca 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-fn.js index 954196eb9feef0f630031f907caa689e7738f0f7..0fbde77fa49d6642651e902293bf1c1ec2aa96ea 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-gen.js index de40d651b8b43aae049e071080a5284cef66a4f1..1d7ad093928b49216b1cdf475f5c14ba08e32854 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-hole.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-hole.js index 794fa0a8e5e21966261efd0bee3730ad4b99f739..68ed2be7de51ff7adbfaf2ec5d8079ce0b5ff5f6 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-hole.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-hole.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-hole.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-hole.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Destructuring initializer with a "hole" (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -36,12 +36,12 @@ info: | [...] 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt - [...] 6. If Initializer is present and v is undefined, then + SingleNameBinding : BindingIdentifier Initializer_opt + [...] 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-skipped.js index 9130c6a693377d2374eef72ae9f859d83b987816..948464917021fc4c7a178faef632c4d3efe80754 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,13 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then [...] 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var initCount = 0; function counter() { diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-undef.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-undef.js index e9484712de89262b73333501da170b632670a321..2771715740755b0cb7fe6b1242b9d15bc712bc4a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-undef.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-init-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-undef.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-undef.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Destructuring initializer with an undefined value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,15 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-iter-complete.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-iter-complete.js index 302e91c7f6ff86cb9c0c76a1d8151f586acb5e2a..703b5fb1221db4797a1c9bb7d3a19efeda8897f4 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-iter-complete.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-iter-complete.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-complete.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-complete.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: SingleNameBinding when value iteration completes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,19 +37,19 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-iter-done.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-iter-done.js index 8120d00a8a07bf36183abf3cc24de2f822ed4a88..31eda659235269bd36c2a0a56a53e4623d86df92 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-iter-done.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-iter-done.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-done.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-done.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,14 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-iter-val.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-iter-val.js index 7c3dca13ab469baf2a2912a2ed80f9698ee5f3fd..f6016fb3d71a685ad981889d947e53352a46aea9 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-iter-val.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-id-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-id-init.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-id-init.js index 8a56b7f00fb398c18e07f94e59d1b119f007b16d..c643f6918e11cef92589e63d226e77a4d5e37d0f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-id.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-id.js index 7adfce8eed894e53dde4dcc305ed4d1fc05b43f1..0b711e8b860031a4cf40058644d1e5a9e08df4f8 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-prop-id-init.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-prop-id-init.js index ded1f423376c41926afb3e7c662722ccbae30068..d7206e8e81544000c48625a710b5c4e7634c43eb 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-prop-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-prop-id.js index 8f4be17b7fae70099436d344ba1680e71b5b9440..59ba00ac9dd11332e9220a722008096bd9e9ac8d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elem-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elision-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elision-exhausted.js index 8c1fe66550ed3fa79acc73bdb3f8898d9d34bb55..217d730d41e3a054589ad48849f553de7ba343bd 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elision-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elision-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elision-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Elision accepts exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elision.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elision.js index 4b39ae37291504a351e627afd26b2fecad1d6d63..fa2c4c81a83ffb4db501efb3df02e633cc9980d8 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Elision advances iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-empty.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-empty.js index 6ec277ac01df5760a27420658a91232dd9e37543..09d6e819f6965df2489df132ef22587b2c1c8c7a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: No iteration occurs for an "empty" array binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-elem.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-elem.js index 1b07b189685102c3b953b4faac2d07955e50de35..7142a54dc5e17ec72b97c791a14875cf72e8d2af 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-elem.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-elem.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elem.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elem.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Rest element containing an array BindingElementList pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -50,23 +50,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-elision.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-elision.js index 2b31699dcbcc69bf58f03a3352019631f3becec6..062556d0aa12149adf95125813826eb5e091240f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elision.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Rest element containing an elision (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-empty.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-empty.js index 52510433ea3dd7b31d7329986ecb3ef1307467e7..7b67a28f979553118021dcfecda58adf54dcd0ee 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-empty.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Rest element containing an "empty" array pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-rest.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-rest.js index c4ba453373b1b7224e81a7a2d54dcdc894410c0a..67b3d6d78739c6798e1299daf81b0d6cee045601 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-rest.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-ary-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-rest.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Rest element containing a rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-id-elision.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-id-elision.js index afb1252516b0934df25915643be91d70b57b8a74..00004d9747c2adf8026f40bd4ff32207e573dac0 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-id-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-id-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-id-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-id-exhausted.js index effcfc3622be55d706df08b41930f83f6cf63477..400b8147bf0a605d9d9a78efdb6bdfa72d17939f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-id-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-id-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: RestElement applied to an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-id.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-id.js index b0cce464af64ce3e0abd9cf2a45180d49f528674..b85c487406f9fd1eb90f602ff3fdbb737acce1f8 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Lone rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-init-ary.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-init-ary.js index 5bdfcb55021d646da9ef3cfb97f12715c47071b2..ad85679de93100f20817a527bd743991740c4822 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-init-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-init-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-ary.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Reset element (nested array pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-init-id.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-init-id.js index 7b028d227931e6479f1f6ae4ec24bde18043e9d0..1b0875f040803dac84701ba1de401a26f899390d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-init-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-init-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-id.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Reset element (identifier) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-init-obj.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-init-obj.js index 865bbf365dfc77b97868a3a80b919a9635ab598a..b5043aa0bc12ac1eef0f61831faedb02f0bbc1f9 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-init-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-init-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-obj.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Reset element (nested object pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-not-final-ary.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-not-final-ary.js index 4110ded90f0351bdbb1241d75e1403f9f43bdb4e..f8b9e341dfe682cd41158179f995466976af8f1c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-not-final-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-not-final-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-ary.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Rest element (array binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-not-final-id.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-not-final-id.js index 8f5dea0e331df476ffd53f5b36f259dd6857be85..92cb0493ddf36f896fc271c8a37d4ef25fcebba8 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-not-final-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-not-final-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-id.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Rest element (identifier) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-not-final-obj.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-not-final-obj.js index f68ecb512493cb6857c6cc99e23afb752a887458..6d2fab978cc5792edff93e2919aadd15e11686cc 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-not-final-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-not-final-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Rest element (object binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-obj-id.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-obj-id.js index e37b6f53be8bfba328c878ac7dba3ffe97b8500b..e1b99509b5493ada49ba2c46b8061bcb745a6f88 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-obj-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-id.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-obj-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-obj-prop-id.js index 9fe2e241b330b633d416f898a686afdc755f054f..0cbe1c7f1295ac953f88c05a29711da269658606 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-ary-ptrn-rest-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-empty.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-empty.js index ea327b594de53fd1a127a22afff66269eee2f7e5..30c54872d71d5890f98e1ef82ed508f453945524 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: No property access occurs for an "empty" object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-arrow.js index 9312b58ed38a3a169109a753d4dffb1040475c61..d1407a661cb1cf495d5bfb56a8d7213ccbf00885 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: SingleNameBinding assigns `name` to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-class.js index 57abee7c53b3f6fd59d1a3c04e917636f6fdd1ee..942649eca4ad8d89f8ecb8f6e62ba9b741be2582 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-cover.js index 07cd9b241f177ccd7e5ab1da90f6868dfc931e3d..a06c12771c8f6d98fe6028bdfba0db05bf7c16b3 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-fn.js index 1842788fdb5b1fc77e94fb4a163444e50948e2c7..2be4d848d72af0b9dd45b6921e29a6eb7e3ff116 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-gen.js index c5587df7ff10801428c67bce686ec3101aa30934..1cbe88c1621182812d33cb23753aa5d0a970a57d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-skipped.js index d72111b6ca742407bed717afba040bfd9982ce70..43dc45b2972799224f6ddeff31a7229a24acf5a8 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-trailing-comma.js index 032eaa430e2979b7972eaa54e3f36f81ae419de0..0be58f42f35ea30e1888c417fb917a82febd47d0 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-ary-init.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-ary-init.js index b4b8f6f56ec5eb761696ceb9906a446ccbb64950..d57b783cc59c71952917ea26081833d43e345e9d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-ary-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-ary-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-init.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Object binding pattern with "nested" array binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-ary-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-ary-trailing-comma.js index 2901548ce4292f68b6374e6f66e0414fbe94b9f2..ab0159e9c0ac63f996f41fe809df6d557eea381a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-ary-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-ary-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-ary.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-ary.js index 1fc91a8d7d6c243e21b6a7a65e014874f152cbbc..e5fb57a8589789a23758857410184c48c72a0bb4 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Object binding pattern with "nested" array binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id-init-skipped.js index 0d3c412c1bcb557f90a00dc39c0a0c9eb3a831a0..49bd81b04246f2c71e47656106931ba139d3f499 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] 3. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id-init.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id-init.js index 4b12eca9a35fba2f37d881d70342a414297ea6a2..4926a6d63de742e547c4327212d549406a685d8a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Binding as specified via property name, identifier, and initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id-trailing-comma.js index 314757b15eadc5f7a4e4ece699fd2ece8b5fd299..c2b1f62be018004dfe3531955aebbf13294f02d4 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id.js index 33278b9480e8feebb93f5b72564fbe1526300150..cbd0f519b1348e1b9f145e5e1ccc6e298d3f5da6 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Binding as specified via property name and identifier (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-obj-init.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-obj-init.js index 3695afc8f37e3edb751db439a36f0db7ef2ac242..330479ba68a53ae842cadf1409da1abc6ef490fc 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-obj-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-obj-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-init.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Object binding pattern with "nested" object binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-obj.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-obj.js index 6a4b31edb861d2224ed558560c6a9dcefe95d091..85c6aaf474889e8205676cbb610a127e53519c1c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-prop-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Object binding pattern with "nested" object binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-getter.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-getter.js index 522972b6e148c58a86a221f56d5b5ce61e56fdaf..a55e98df7c79fb229b25ab6357c468a869acb4b8 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-getter.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-getter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-getter.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-getter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Getter is called when obj is being deconstructed to a rest Object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-nested-obj.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-nested-obj.js index b67f6bd417c08269cd88257ea914f857a3cd6c8f..5b79371dea5258c807494bc14776e0cd922460f1 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-nested-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-nested-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-nested-obj.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-nested-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-obj-nested-rest.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-obj-nested-rest.js index 6e671982d61f28534576292a5829b4de53ba8819..e960685b1114654b552156f7f615c67c62d50abb 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-obj-nested-rest.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-obj-nested-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-nested-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment and object rest desconstruction is allowed in that case. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-obj-own-property.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-obj-own-property.js index 224963260e69db79aff7021bc637fa59ac3ba7e8..95394838f62e88e4c0b2c6322a3f49b96b3579e0 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-obj-own-property.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-obj-own-property.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-own-property.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-own-property.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Rest object contains just soruce object's own properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-skip-non-enumerable.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-skip-non-enumerable.js index 218409b566e628a37680349962ab5c31ed372bcb..5c21293502e02580d09b2c26c40cda587dd2fab4 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-skip-non-enumerable.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-skip-non-enumerable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-skip-non-enumerable.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Rest object doesn't contain non-enumerable properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-val-obj.js b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-val-obj.js index 25bfc0ae85d85b18802e954a8a11365157df9dc9..e4c95c22b3e093ee867f3366e503eb4ba897b1f6 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-val-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-async-obj-ptrn-rest-val-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-val-obj.case -// - src/dstr-binding/default/for-await-of-async-func-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-val-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const-async.template /*--- description: Rest object contains just unextracted data (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-init-null.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-init-null.js index 8b0a89b79c8044ec86c5bb487c892441f8f8b8d0..fb45aee39a23489e1a75b8986134e1fadc33278f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-init-null.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-init-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-init-null.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-init-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Value specifed for object binding pattern must be object coercible (null) (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,6 +49,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-init-undefined.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-init-undefined.js index 4fb0ea48bf2a59d29523caf89eba4c1f513d4756..c54ae707242ad527084b1fbe5ee1523651edf147 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-init-undefined.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-init-undefined.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-init-undefined.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-init-undefined.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Value specifed for object binding pattern must be object coercible (undefined) (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,6 +49,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-empty.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-empty.js index 3bc5dd2ed8f28d42bfbecbe0ec7ab017cca51385..ead75b97151015a0b8d20b470415f2527efa2991 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: No property access occurs for an "empty" object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-get-value-err.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-get-value-err.js index 0a50226a403da778454913dd1bef1445fb9f1865..29bde1a8ff51513add2463466eeff7902eacb195 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-get-value-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-get-value-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-get-value-err.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-get-value-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Error thrown when accessing the corresponding property of the value object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 4. Let v be GetV(value, propertyName). @@ -56,6 +56,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-arrow.js index 5e3ecd27fde91298beffbed09c79ecdb5bef0762..a92908d16f6ed877b651a65a93e40485c7f0cce1 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: SingleNameBinding assigns `name` to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-class.js index 9353a4ee97ef29dfbbed9d4a8a68e77ee3c6dd03..f3b30673744a8e11852c3b28a3cd5f3c1e185bae 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-cover.js index 49704c4f3ffd99e2ccfea6513816f16a12f4e65e..8b52db48b0fa9269aec602a6608d37b9de45d0cf 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-fn.js index 47c8bc2ba74318ac287f6641b8c80f9fce5ea9a8..28a302e17f70ecbd90e183eb9ba0b43e2e380d14 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-gen.js index 97074e7e40c09e07d58a1d8d283e9327652dac60..8acacee74a6c1b4b80a1532cf4fc8b00f8cf20a7 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-skipped.js index fb1c5158ed5cf577b045ae33dba7aabee0b4f24c..1b36270b0ff2361507b548f708f210f76556bf60 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-throws.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-throws.js index 829dffe76d47539e8fed0b8c9e6c6cb2599e6183..573df23103845ee9037c4a158e1dd0cedda22157 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-throws.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Error thrown when evaluating the initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then @@ -56,6 +56,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-unresolvable.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-unresolvable.js index d98d28f2c65e3c8faeff211d186cb399f220e3b0..abcf7b0bf6c74f687236140a7af9803e95d9effd 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,6 +59,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-trailing-comma.js index 02fb88d16e25de70f3869e0dfec2949de4ef61df..b1779106a793fa914ee491a5badd06fab7c0f9e8 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-list-err.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-list-err.js index e37bcbdfc20c9b3b61ba0d1c112d1398b7f6e83b..a6ec15f1626747d7f1e2d034185c120a6068a2a0 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-list-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-list-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-list-err.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-list-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Binding property list evaluation is interrupted by an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,8 +55,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - -assert.sameValue(initCount, 0); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary-init.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary-init.js index a0477e965bf1b0f27c92110d752178ec4cb5a162..478fe16fb64bc95a66062065d43ddd10e7a50980 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-init.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Object binding pattern with "nested" array binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary-trailing-comma.js index 001aab5e3255ec61f467874d3bc273798d91b92e..51b3adc674a16c8f037be10dfd42cee163f80130 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary-value-null.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary-value-null.js index 5f4e98d1283dbf1c223db5459f28e3b0506382d9..e6c8be2827bf17c756869f2b05840429d9efe2e9 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary-value-null.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary-value-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-value-null.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-value-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Object binding pattern with "nested" array binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,6 +51,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary.js index 9cb463ffd00bbc0c2f2fcbedf744c4a093374fa2..27e407524410e395627f27b816125335dd951dde 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Object binding pattern with "nested" array binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-eval-err.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-eval-err.js index 3bdd7c6fd1de4405d689dda3f2d99beb7df6443b..229b3fd1d76427c4cde5df71bc4aed32ba8dd2d9 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-eval-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-eval-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-eval-err.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-eval-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Evaluation of property name returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -53,6 +53,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-get-value-err.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-get-value-err.js index ab2ef7c4618c03c3d2a0b4b49e5729686ec4be37..2246269a2eab1f0c935fef9d6897fb61123604c3 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-get-value-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-get-value-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-get-value-err.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-get-value-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Error thrown when accessing the corresponding property of the value object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. Let v be GetV(value, propertyName). 2. ReturnIfAbrupt(v). @@ -56,8 +56,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - -assert.sameValue(initEvalCount, 0); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init-skipped.js index c7c6920daaedc353f8c3e7ae6bb1c14c497bd63b..8c908cc94075bde67b5b99fe3931de0f379914a6 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] 3. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init-throws.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init-throws.js index 9a9fffe76a3627b90689de57a7a89a5f16df7c1a..136e505dfb5ffc1a8a83f9ac5f2136bcdb1c97a5 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init-throws.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Error thrown when evaluating the initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,12 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). ---*/ function thrower() { throw new Test262Error(); @@ -56,6 +55,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init-unresolvable.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init-unresolvable.js index 2ec54e3ce9e8355e8cee01883dfae9c04ecec3c1..928600acb9a2f2f736882eab468b595b157b914d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,6 +59,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init.js index 914807a35b42ae71b416dd1f8c1ca780a0105089..d38dab62935d5945e807d5af71d6d8de659d6fb3 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Binding as specified via property name, identifier, and initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-trailing-comma.js index adbe01fd01ef8b14eaa464dd1a5e0cfcff9915e6..9d5dbe33f51296aeb6001da9ceba49dc2222bbaa 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id.js index d1940c75af6d132d5f184fd671e5766da9eef2d1..892ea59150e0eb900a9f224e623fd6b74b67f568 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Binding as specified via property name and identifier (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj-init.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj-init.js index 779ff6232579647cf89332ed009019bbe52ea822..73553b46cac1a3d4d849dfefa33b19937160762a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-init.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Object binding pattern with "nested" object binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj-value-null.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj-value-null.js index 899e6709ca0f6b23b1ebb72b42752c588a8a80f4..99ac75419635d19d23966c38f1d89b6b316ec76b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj-value-null.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj-value-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-value-null.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-value-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Object binding pattern with "nested" object binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,6 +51,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj-value-undef.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj-value-undef.js index a0d082d80c711e37fa93bc690a6e4d9f3160bc7d..b78d7d781cdafd96f8d7102d8cb1fed29b5a0829 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj-value-undef.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj-value-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-value-undef.case -// - src/dstr-binding/error/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-value-undef.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-const.template /*--- description: Object binding pattern with "nested" object binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,6 +51,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj.js index f5a3fed3f2111d18fa4584e5865995b948d07ffd..c612385c764e18226463192b93fda4416157f1a2 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-prop-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Object binding pattern with "nested" object binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-getter.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-getter.js index 6b5a443a4766e14dd132e319a6c79ac38cf41333..4bbb88b0ffc8d14ab78e7a4cac8f91a4686a7c73 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-getter.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-getter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-getter.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-rest-getter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Getter is called when obj is being deconstructed to a rest Object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-nested-obj.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-nested-obj.js index 37427d05856513943e9801192db1fb862e62361a..39cafc08f51b005d751207e60c57bad24b3119a8 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-nested-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-nested-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-nested-obj.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-rest-nested-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-obj-nested-rest.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-obj-nested-rest.js index 450c85fa156a9f656b547ff84b5c64b01ea7fff5..2df7a1847a4926b7c325afeb7ee66c5013355688 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-obj-nested-rest.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-obj-nested-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-nested-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment and object rest desconstruction is allowed in that case. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-obj-own-property.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-obj-own-property.js index d98c6ea67629342b335c4b1289fd9a8afcc78976..404f73be52606ecee3eccfc4235b9c6b5ee41bd0 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-obj-own-property.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-obj-own-property.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-own-property.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-own-property.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Rest object contains just soruce object's own properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-skip-non-enumerable.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-skip-non-enumerable.js index b28c1d9513585ddc2872f01a596c5245c810b4aa..b619c4ab874177b3d269eac2bfe4f1349147f0a3 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-skip-non-enumerable.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-skip-non-enumerable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-rest-skip-non-enumerable.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Rest object doesn't contain non-enumerable properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-val-obj.js b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-val-obj.js index 45bbbdf6b738ef435297f2213a5099e2559f2621..e1eeb5dfdc1140fc8da4fd2a86ad5dbb6ff7caca 100644 --- a/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-val-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-const-obj-ptrn-rest-val-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-val-obj.case -// - src/dstr-binding/default/for-await-of-async-func-const.template +// - src/dstr-binding-for-await/obj-ptrn-rest-val-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template /*--- description: Rest object contains just unextracted data (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-init-iter-close.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-init-iter-close.js index ee04b176a1d7f229c178904e53302f9464da5f8f..2a327cd305c1254bd555835cbed22dadebd370d4 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-init-iter-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-init-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-close.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-init-iter-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Iterator is closed when not exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: false }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-init-iter-get-err.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-init-iter-get-err.js index 53356d8e5838d0b5bc4147009963ebe115607ad0..cd3d4c5bd34648db432693c5c1f9c2d66fb95124 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-init-iter-get-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-init-iter-get-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-get-err.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-init-iter-get-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Abrupt completion returned by GetIterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -39,8 +39,7 @@ info: | BindingPattern : ArrayBindingPattern - 1. Let iterator be GetIterator(value). - 2. ReturnIfAbrupt(iterator). + 1. Let iterator be ? GetIterator(value). ---*/ var iter = {}; @@ -55,6 +54,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-init-iter-no-close.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-init-iter-no-close.js index 699d61086c3dd081098d2bddebd46b66dc41af77..bb69bb6e36d39c9ad554e29937370f379d673ff0 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-init-iter-no-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-init-iter-no-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-no-close.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-init-iter-no-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Iterator is not closed when exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: true }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-name-iter-val.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-name-iter-val.js index 9a77672859af82fc854764a7764468b8f74e4e16..7479086465ff9a4820fe66b9ba84a3784c86a544 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-name-iter-val.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-name-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-name-iter-val.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-name-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: SingleNameBinding with normal value iteration (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elem-init.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elem-init.js index a69ed9edecc8642db2017495b0a62c79f045f303..73a1e1e35be57112fbe2048073c6041400e0247e 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elem-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elem-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-init.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elem-iter.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elem-iter.js index dc4d5fa3f2935be12eeff566ad3790d042c7a7ec..b55dff3b62ebf2ef5cd910ded3057823d205ccb4 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elem-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elem-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-iter.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elision-init.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elision-init.js index d84b82d3817408383524f51178f987eec997b02b..8353b4eda35d215b72c0000eedc44c285c63df4c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elision-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elision-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elision-iter.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elision-iter.js index f6bf5adcd870874e79ed5f45c513c085cff80fd0..3cf41e50ed1a8c1996744b903bf32814e866d9c6 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elision-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-elision-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-iter.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-empty-init.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-empty-init.js index 8dc810bcb6b370162f074d8885b185f5e0c08228..0e4e595cc0d9cfe1d179092e26535472c0c7c8f7 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-empty-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-empty-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-init.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-empty-iter.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-empty-iter.js index b04a49fee647db37e5a229a5ed647e64bbfc2816..4170dc60fe08ca85dba590dfeeb7ced0789c1688 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-empty-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-empty-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-iter.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-rest-init.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-rest-init.js index 77b76eab44a4e41227ea85904debda0dd163df18..3174b1d18ffe2d0d50fac1437d48529f1d4016cf 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-rest-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-rest-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-init.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-rest-iter.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-rest-iter.js index 5ef582799fd293827974480f2ab487a8f58d1621..0b5dcd28a179200e7bccc9ab0d0f9fcd280040b1 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-rest-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-rest-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-iter.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-val-null.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-val-null.js index c4e8a5b56a00bce653a9ad5ff73cf0b854a865de..21230e963e4ebdf590e0228fe14198ffba00f90c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-val-null.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-ary-val-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-val-null.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-val-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Nested array destructuring with a null value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -51,8 +51,7 @@ info: | BindingPattern : ArrayBindingPattern - 1. Let iterator be GetIterator(value). - 2. ReturnIfAbrupt(iterator). + 1. Let iterator be ? GetIterator(value). ---*/ async function fn() { @@ -62,6 +61,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-exhausted.js index 554ff21c37d998f84394478a0b37c64ef90926d2..fbf731e135d21c97b26d1b525b0270723e268cf4 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Destructuring initializer with an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,16 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. - 6. If Initializer is present and v is undefined, then + 4. If iteratorRecord.[[done]] is true, let v be undefined. + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-arrow.js index 7628c2f87f934316e8de183f225aa13103c9c42a..c379105cf355e26c10776aab8fa9b0f8e26875ec 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: SingleNameBinding does assign name to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-class.js index 7f020866e2713f6d9196e6fe3177237fd77e7dfe..ee8540b2bc35271f136bfffbfe74649e8911cc84 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-cover.js index 9077d6dedd868581901a45cc54f343738988e423..0b6aaedbc52b69ea44bff11b83597bf8d1401160 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-fn.js index 92751b857f29fb2fb72204d313d0bd0510adcef2..fcda7fc0c622e754e108965bc1e949e326987945 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-gen.js index 17b25482b2670c33b0095462f99e2261ca3d1fb5..b5107989338b87ae43b9115943b08d6f2cc0a655 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-hole.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-hole.js index a09c5bab729a223791d3f26f0eaf6a3d84241fe7..b7b92e4be96922a1516d3f94ae3fb7d89624b997 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-hole.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-hole.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-hole.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-hole.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Destructuring initializer with a "hole" (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -36,12 +36,12 @@ info: | [...] 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt - [...] 6. If Initializer is present and v is undefined, then + SingleNameBinding : BindingIdentifier Initializer_opt + [...] 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-skipped.js index 0f899edf0909bbf7f7857194ce28e6dcc0472f7d..7d1194d659d1d399479680db4bac5cfbbad34863 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,13 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then [...] 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var initCount = 0; function counter() { diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-throws.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-throws.js index 88da5ae80781bde442ab503edcea0f0886cbd488..981d370dfdf37c43ac885e8772736132f9caf216 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-throws.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Destructuring initializer returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,12 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). ---*/ async function fn() { @@ -53,6 +52,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-undef.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-undef.js index 9423b8cda47f1a9488c6785a4cc3c024a4156f64..88db6987002445434f3e74e056ea82590255bf10 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-undef.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-undef.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-undef.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Destructuring initializer with an undefined value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,15 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-unresolvable.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-unresolvable.js index 4dd930c0371616f708abc576fdfc32b1a659793b..04c7da70f8a42ba6cc7d1dd511b73e5f0e257d9b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,6 +59,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-complete.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-complete.js index ec56f9053175f4138dec1bcd266b90d57efea22b..249d996bfe796d4a331161e1527d6b12d3e577e5 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-complete.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-complete.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-complete.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-complete.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: SingleNameBinding when value iteration completes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,19 +37,19 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-done.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-done.js index 290d80b3045f4a36cd3c348ddc2221fc0d159cbd..b1270529b55a24d3a2482ce1049a5a32ef86656b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-done.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-done.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-done.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-done.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,14 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-step-err.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-step-err.js index 383d37d27a3b135ad5de2a25faaad232e670daa1..234accf7584710348d379058d91070e55fefe0eb 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-step-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-step-err.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Error forwarding when IteratorStep returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). @@ -48,7 +48,7 @@ info: | var g = {}; g[Symbol.iterator] = function() { return { - next: function() { + next() { throw new Test262Error(); } }; @@ -61,6 +61,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-val-err.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-val-err.js index 8473eb939f4ab3ca0925bf2a4eb1605e99df0eb8..a9bbb4e5e5453e973cb387d651721d2f59872a52 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-val-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-val-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val-err.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Error forwarding when IteratorValue returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). @@ -59,7 +59,7 @@ var poisonedValue = Object.defineProperty({}, 'value', { var g = {}; g[Symbol.iterator] = function() { return { - next: function() { + next() { return poisonedValue; } }; @@ -72,6 +72,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-val.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-val.js index bc4eec7f183949cca3253cdc35f25885a07bd5ea..6ac04bab7b7d0ecacf89587cd4dffbf27a740e72 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-val.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-id-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-id-init.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-id-init.js index 68385226b76b047c77f10a96feb5ac69eec9739a..a48da5cdbdf4a5a33eba9a91da9a4ec485233ad6 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-id.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-id.js index aac482acf5a7a9b2a47c3d1ec029123d09bef654..f46bea053209d6ea0b9221b7878d3e38e7b6eb4b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-prop-id-init.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-prop-id-init.js index 5544813025590727b2d2681b367540f2ed83ddd7..b8ed93139d0c3435550b1c3e8e138fb1f5d95d04 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-prop-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-prop-id.js index f40915bec5ee26d22694a7fcdea9ee06086f5f68..d91461aa7d789116c65bf6c53e55e9ee2a14269c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-val-null.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-val-null.js index ce125433de6926b02bae729ed420d896b378f11d..4e3f81fd1a848c0b57f967fb97887884c208fdd0 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-val-null.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-val-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-val-null.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-val-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Nested object destructuring with a null value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -62,6 +62,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-val-undef.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-val-undef.js index 262a572a4ad25b8d3c5ccaa931c7080f26a77065..a150a7c613f6da917f18f7024ae730a2311b11e0 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-val-undef.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elem-obj-val-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-val-undef.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-val-undef.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Nested object destructuring with a value of `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -62,6 +62,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision-exhausted.js index bcc6088cfe700603bd801cfa5b94fb22cb2461a2..2e522707912723a71204795a79186aeea47b898c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elision-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Elision accepts exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision-iter-close.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision-iter-close.js index b92c8a4fd27466daab6708cd6fc8b6c83919e750..d156ff2b8f1a535bd7ac4e501256571d0637a40a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision-iter-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-iter-close.case -// - src/dstr-binding/iter-close/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elision-iter-close.case +// - src/dstr-binding-for-await/iter-close/for-await-of-async-func-let.template /*--- description: The iterator is properly consumed by the destructuring pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision-step-err.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision-step-err.js index 7abaa288e678691abb0448b524de6bd6e38b38a4..a49aaefa13ab41c9916caeab96f10de2db49fd35 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision-step-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-step-err.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elision-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Elision advances iterator and forwards abrupt completions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -54,7 +54,7 @@ info: | ---*/ var following = 0; -var iter =function* () { +var iter = function* () { throw new Test262Error(); following += 1; }(); @@ -66,9 +66,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + assert.sameValue(following, 0, "iterator is properly closed"); + }) .then($DONE, $DONE); - -iter.next(); -assert.sameValue(following, 0, 'Iterator was properly closed.'); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision.js index 4dffb5daca34a3e5c7c0ae0c25e47a188d718d04..2e27366924fffb8e2dd13987a8c99b754de62533 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Elision advances iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-empty.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-empty.js index cdb54202a2c60bad6b995bddf1068473c4e015ce..151088698f0d08989393f60ed218458eaf4bd523 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: No iteration occurs for an "empty" array binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-elem.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-elem.js index 4c8c1a2e403746b11604f7eced057dc32cb32d2b..f1000b904fb35d88801254de6cadeb85ca53f0c6 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-elem.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-elem.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elem.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elem.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Rest element containing an array BindingElementList pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -50,23 +50,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-elision.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-elision.js index 38e2ef4f6be47643d7eadb08d818844db6d443d4..3b8195bc27aea1c9020ac035021fa7c655471869 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elision.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Rest element containing an elision (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-empty.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-empty.js index 43b425c7937c5e29f27b1e849bab910b48fdb3e5..088fdb95882a447f9ac313babd77c4e050ebbe4a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-empty.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Rest element containing an "empty" array pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-rest.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-rest.js index b31b345157da23659e5a7ad14adb09a650b0c574..2e8dc1a6e9115ed8e1f24444c77dd595cb7b564b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-rest.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-ary-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-rest.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Rest element containing a rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-elision-next-err.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-elision-next-err.js index 32bad54f2a47e6775505aeaea5028818b913a2fa..8be17ad5ba4f1463ab364bc65229c73c0871fbdb 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-elision-next-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-elision-next-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision-next-err.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision-next-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,6 +55,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-elision.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-elision.js index 7ed735db2c12d2746fbd6a3a82656953565ce6a5..67ea422a4633ab24beb67b2811949fe1492eabea 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-exhausted.js index 8f3f7dc9d15336005e11ec75c66ce99088f80919..20b96f6c0ab454df91a72abd37cc5f498a2a76a9 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: RestElement applied to an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-iter-close.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-iter-close.js index 797ef147f8542898bd686eba6577c668a2aef927..8eb33fdb413512a4f9564afeda638c6b564e273e 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-iter-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-close.case -// - src/dstr-binding/iter-close/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-close.case +// - src/dstr-binding-for-await/iter-close/for-await-of-async-func-let.template /*--- description: The iterator is properly consumed by the destructuring pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-iter-step-err.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-iter-step-err.js index 3d8c48099906c616f0bc954e2f45b892c2497a58..440785123c6a53eaa56407d34ac4107aafc39a06 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-iter-step-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-iter-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-step-err.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Error forwarding when IteratorStep returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -62,10 +62,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - -iter.next(); -assert.sameValue(first, 1); -assert.sameValue(second, 0, 'Iterator is closed following abrupt completion.'); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-iter-val-err.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-iter-val-err.js index a45531ed320ca7458f12ec64956331f0f4a0543e..bfe84544ef4fa95d1d1267e26ebcf18effd14657 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-iter-val-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id-iter-val-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-val-err.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-val-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Error forwarding when IteratorValue returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,7 +55,7 @@ var poisonedValue = Object.defineProperty({}, 'value', { var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return poisonedValue; } }; @@ -68,6 +68,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id.js index 459c351a2a5ccc231ee354e14c45f919cbc1c444..4a9813d142727ba1df8b2df97462049e80a8359e 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Lone rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-init-ary.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-init-ary.js index 8b05b78a38d504c8e4d8b931382418ef788172a7..f5b44922ce4378716af9879ef88612ad3ce9bbae 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-init-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-init-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-ary.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Reset element (nested array pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-init-id.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-init-id.js index 61de2df4e053854c1be662488700d42fecfc5512..ceb14111894f3de7a7aa0d156d186428f12e6c6c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-init-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-init-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-id.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Reset element (identifier) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-init-obj.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-init-obj.js index 1b885ec818e2449c7eccea4e551f4902459144e3..658b963a8a468ee4dee74f102f2206516a2df289 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-init-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-init-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-obj.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Reset element (nested object pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-not-final-ary.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-not-final-ary.js index 8584d0ce380582287d822f8bfb3d740cffe4ae6e..57c5abf50160a9504a0f7749cbbfe30344cdcd34 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-not-final-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-not-final-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-ary.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Rest element (array binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-not-final-id.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-not-final-id.js index 74f92029ae94e232fa3fd7e2338c7f8863a5c8c9..f8e3c48e0f04463f47eb3add88feb1e929fe1ed1 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-not-final-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-not-final-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-id.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Rest element (identifier) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-not-final-obj.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-not-final-obj.js index 65783cfbc01d22941c5d4eefeffd933c94a57e2b..71fb2b646cddd1665e9c5ea6e47bda9fdb182562 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-not-final-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-not-final-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Rest element (object binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-obj-id.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-obj-id.js index 692810ac98df1ca09b0bff1669149ec92226d7bf..7a54a56e369e6d3867976eb3d2d449d2f1d26282 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-obj-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-id.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-obj-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-obj-prop-id.js index a3929d0e70f5409be02a8120dad3dbaa9ecb1aa0..4f21924cdc4f9504d0d68d08168ed765685d1a58 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-rest-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-init-iter-close.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-init-iter-close.js index 89ca96204db0e1e4f94d0977cdfc65cb82e61a5b..a1b31e14efd5491482481a907a61439580abf2a4 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-init-iter-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-init-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-close.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-init-iter-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Iterator is closed when not exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: false }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-init-iter-no-close.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-init-iter-no-close.js index 6f4c9e35ddf47c2c00d6abd9ca1fc9ce8537fef5..6b59095af1014e3d8c4233f2a40109d5d3e17865 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-init-iter-no-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-init-iter-no-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-no-close.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-init-iter-no-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Iterator is not closed when exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: true }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-name-iter-val.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-name-iter-val.js index 150b2b6fa5fc510c13070898256c9325ad67af61..05218d9081ee52b71b5d398083ae572438ad05ae 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-name-iter-val.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-name-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-name-iter-val.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-name-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: SingleNameBinding with normal value iteration (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elem-init.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elem-init.js index 0c373c5f60fa05ad47782dbfafa364cc167b2167..7b4cb71c555759686853ea96f616b358ca651b11 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elem-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elem-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-init.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elem-iter.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elem-iter.js index 67a3720ac122496eb1b340d68542aecc2949e3ed..2203b6d41cd0b302dc8dd56f71b9121eb9e67946 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elem-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elem-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-iter.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elision-init.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elision-init.js index e350d5e42f2294c7bf312dc93a7499f401ebcb74..7f0a6849defd67405aeba1174ba66d9f921a4696 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elision-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elision-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elision-iter.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elision-iter.js index f76dcc5f9ff9da2e465748d1498d60a70c78ef3f..a9fc3ad0c546e37d49d141d105c18e3ac848080c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elision-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-elision-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-iter.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-empty-init.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-empty-init.js index 235714cf6572eedea61a28bd916789db247aefc0..a19aa261f5221870e0d4e03e155c26d693cd0512 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-empty-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-empty-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-init.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-empty-iter.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-empty-iter.js index 35bcf39b0518ab10e39fd47614f4c305139df2c2..8f6f1cfcb1f832dd683e172399c05046193df51a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-empty-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-empty-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-iter.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-rest-init.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-rest-init.js index ea51a1d30d5aae97ab4a3858eb969bf253f4291e..bd107a097bd34daa9755ee8ab500b3ea0511bfca 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-rest-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-rest-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-init.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-rest-iter.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-rest-iter.js index 87d89dec161c6cef0ea5d5573a0332152edbdd87..cd4d06cfba696fbb9817ede975bb8761cc8f016c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-rest-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-ary-rest-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-iter.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-exhausted.js index cc6bfb62fd132947f9c1562653a18861df3a84e3..afabc4bd27ae98eb10a944f596029294e7726fe8 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Destructuring initializer with an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,16 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. - 6. If Initializer is present and v is undefined, then + 4. If iteratorRecord.[[done]] is true, let v be undefined. + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-arrow.js index fddee0a259c7c980175778475a9864abe4dce28a..e4db6777b9e74d2f1ac9dda38edb3f5126362adc 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: SingleNameBinding does assign name to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-class.js index 40e89f28769ae159011efedb677877251aa466af..31c5c335bdb55b944d95bfe9fcd77ca98fe0703b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-cover.js index 779318b324351412bbf2fe6abceb55911e5e9895..61b5471f96d80c4d092fdc3e95bf3a4bbdc89937 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-fn.js index b66557b77cbf8e3f258f9939afa330f474b8448b..84338319609375e0dd1d15a1ba9a25cf17aeeb6c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-gen.js index f9753954e88fd851cb871ec28c4ad83b9fe85aef..62394147b4bd131901dbdc64f2be8cfb0d2023eb 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-hole.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-hole.js index cc468edee0663c806136253c194f73c0213b0acc..f413d33d5c580918817987c6267c8076fa6ceeed 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-hole.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-hole.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-hole.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-hole.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Destructuring initializer with a "hole" (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -36,12 +36,12 @@ info: | [...] 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt - [...] 6. If Initializer is present and v is undefined, then + SingleNameBinding : BindingIdentifier Initializer_opt + [...] 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-skipped.js index 40f5a7096a9ed22e0ba65665a9eef2150467a512..9630fc9884da589dd0b84d87be8ec8c75c73de8d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,13 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then [...] 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var initCount = 0; function counter() { diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-undef.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-undef.js index aeb52b58a0e6ad89b8afbf64afebbfa687d23d56..7c7cf2fa682935a4b8f778d84805163fa791db89 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-undef.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-init-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-undef.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-undef.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Destructuring initializer with an undefined value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,15 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-iter-complete.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-iter-complete.js index cab1bbf67f644cfa5442cc902ceb3b259c4de5cc..a4764ad8f26811e8d83833a2ab9ef77305afe55b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-iter-complete.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-iter-complete.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-complete.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-complete.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: SingleNameBinding when value iteration completes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,19 +37,19 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-iter-done.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-iter-done.js index 12e0d09c62f49ce5ca3a5a6e719dbfd5a49ef24f..ee2cbd6b85ac7779482e45fb42cfeb1cf9b572cf 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-iter-done.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-iter-done.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-done.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-done.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,14 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-iter-val.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-iter-val.js index f035c1d0908ff4c484d8eec37d110a700e287bd8..e926da2c6805f13358a8c8113e3805124c8e6842 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-iter-val.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-id-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-id-init.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-id-init.js index 9bb94ca087f942b17c0a9ce86d4fad67cebddf1c..5b89ddc4c5f4737d22ea57275cb1543e3a2e1abe 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-id.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-id.js index da37fef834e3255adf2bb67edf71f6968350c910..d6cc12bc8e8049434a397788b6c969ea8d7d5893 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-prop-id-init.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-prop-id-init.js index 0fadab59129ff802051d7a90e8a5af81de48762b..f17195bd747a6e2655b61fec53862159cb900825 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-prop-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-prop-id.js index 00ab0f076bfcd511f198f6e122d829973b114596..7ce0a9ac655171a190df3f756ca0d0ff4c2f1537 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elem-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elision-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elision-exhausted.js index b3ed5edbd4563439a0269821c72bc1c94050fd52..427695e835bdb7f1d4af2aaaa5831ff5cb1ddf21 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elision-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elision-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elision-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Elision accepts exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elision.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elision.js index c78aa50717d3cec35866f19fa4bdac5fa83b7480..8c52cf04096111dc570e7de3b26ca762b73edac4 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Elision advances iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-empty.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-empty.js index b6cc6912e8f8e0974e67cea5cf323b2568143790..0c8bd969152786b4fde6db6b7ce8c08ac85c4970 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: No iteration occurs for an "empty" array binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-elem.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-elem.js index 5a4c816619c59f7dca75b7b091bffa4ddc57e5d0..20c4cdcb06492dc94818e727097ff3a56b6eb329 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-elem.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-elem.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elem.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elem.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Rest element containing an array BindingElementList pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -50,23 +50,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-elision.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-elision.js index 29fb962c88c23c4137758ba58749a50dc3c3a07f..8303f7f708196810fa6a9b2eeffccd61368adeb5 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elision.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Rest element containing an elision (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-empty.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-empty.js index dbcc88af2c3051ae1361e7258752d2210815d874..be2fb21423a288412e15880fd21003869f776547 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-empty.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Rest element containing an "empty" array pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-rest.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-rest.js index 0faa4dbf16c94d40cf8c40b08ec4cf63c59eae25..880f5fd6787887fcbc18dc86161916f307de0b79 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-rest.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-ary-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-rest.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Rest element containing a rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-id-elision.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-id-elision.js index e111cb1811d6a1b96c1fa1e916f4468d9d28b775..a6ddb66c778a397dd681bf0ff008a9d494150db1 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-id-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-id-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-id-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-id-exhausted.js index fddf10d574ee45e7cd8c97f62339a654a3f12a42..fdd3f5092baefda879d1dbe1f3732439afdc82b9 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-id-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-id-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: RestElement applied to an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-id.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-id.js index 5eaa9e14d3c6abb21087bb79a18fc4182e1a2555..450ef508b4b793e4105c47d2196c737467916f31 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Lone rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-init-ary.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-init-ary.js index 88a93910ef68ec44ce809aaf475480ccebe4114c..e36c46691a028d9602b5e1e08e65e98bc5d05860 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-init-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-init-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-ary.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Reset element (nested array pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-init-id.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-init-id.js index b9b64dd4caad1d32f1e4da497962ec55b3625d42..6ddd9d47462c215af1bce1c9cf8dbad293e5c77e 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-init-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-init-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-id.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Reset element (identifier) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-init-obj.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-init-obj.js index 9c40a15f9fff73fbdf1e946a6bcaed53cce89eb6..cce62fe3b6ed3e01a7ba5df1f6c61c64fb9ba26b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-init-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-init-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-obj.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Reset element (nested object pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-not-final-ary.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-not-final-ary.js index f13533ca8dd199f46f2b8df8949179249848672c..a8ecd434b0cc73c78af629a33b2f600b13d9bbf1 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-not-final-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-not-final-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-ary.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Rest element (array binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-not-final-id.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-not-final-id.js index 4c09dd7f46653ef3cd97ae4d2749a50cdf700002..3288685a43b6cb4518ac6b6956ebad52ec075db9 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-not-final-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-not-final-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-id.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Rest element (identifier) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-not-final-obj.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-not-final-obj.js index 6255f00fdbe86369707259b1eca020c3315a102c..6a704463c19a6fea9474c948bd032de230cc8afa 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-not-final-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-not-final-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Rest element (object binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-obj-id.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-obj-id.js index cfb6caef8c17e6a9f3a0e7016d6b4fe0fbe3fddd..374f794583f26a286f3bd8562358360c39ecd81a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-obj-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-id.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-obj-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-obj-prop-id.js index a3686b56580b00b46bfa560c6d833ddde4978201..1504c29dbd28a2271bee046c9988511e8888bf41 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-ary-ptrn-rest-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-empty.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-empty.js index 442b59f9ce023e38780d0a452b598310807aefad..d612401b440557c9b2be3018bb9f6141b468f497 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: No property access occurs for an "empty" object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-arrow.js index 1deabbc45429e9e0dbfacb0249993bc7c59a36a1..50d4df98fd26abca5d38572fe5a671006850dbe7 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: SingleNameBinding assigns `name` to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-class.js index 0af1abc181983eafddeb82a935885675d1159dd2..a54f2b22019e9a1e18f6ed790cf9a120679db91b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-cover.js index 3a0a9a4f858b4d17ce1b50758ec7b15773dcffe7..af76f38b8c301c822d9014a29e621690344c6775 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-fn.js index 80f255e45a560a2717f5344fbd9bca375edb73e5..d78c45b53be075006fd1aac1eddeead63222a858 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-gen.js index 4d122d3e98618c56e2e32061823e44fa366ed815..33374b5733561827b2dfddb78a94bcd3f63ea36c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-skipped.js index 31ca7171af9f226d167686532b3d6389b2b7b5ff..bd06b95c573220a14e40cf2980fd85e10ae123d0 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-trailing-comma.js index 9f32a86d269b57bfc018d9ac6241db6cae8007d2..c4e455f6b4cda1d2f4ba94ef6b1654b2bc9b0595 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-ary-init.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-ary-init.js index 8983357d364872e27dcdc957441717bfb416d1c8..bd77d1bddda242661bce3e875dd023fb53f2837a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-ary-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-ary-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-init.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Object binding pattern with "nested" array binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-ary-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-ary-trailing-comma.js index f4c09486c30f1efe544973a3a4fa07cb9a085600..b334f8b8cd394bfeac594f85499176022c199b21 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-ary-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-ary-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-ary.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-ary.js index 6ee201d9e4c3c61df482a711f937f4ab5969e36d..2a5307c7b056ff7083ef877e3a3a5e6ffbe217bf 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Object binding pattern with "nested" array binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id-init-skipped.js index be2c745522900ecf85de6dddecac3e2efb4ef644..45fd703da2add147738f9db44dc6b3649ce3c5fc 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] 3. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id-init.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id-init.js index 83c5f68f5693646b3944a637ec77f6b10b063680..d41060961c5ae0aaa58154ce3a3f93a7a851a10c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Binding as specified via property name, identifier, and initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id-trailing-comma.js index 6bc04fa8ffe6af0c3b5c01ba3bb534e796c8b623..05dcc2eef8b2212365c85744fa5c822497a15033 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id.js index 801755c156c8c7f1aa01f0853d046a70adde75ea..2dda39f456e86bb6823e770f7cdc32ebf1b8d2bf 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Binding as specified via property name and identifier (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-obj-init.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-obj-init.js index 37f0e1107a2d36aeea0e1f986f25f8b191d18501..14e2cfca4393e2278a90cb2de8e8d039a0d37b2a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-obj-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-obj-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-init.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Object binding pattern with "nested" object binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-obj.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-obj.js index 60f704eefd374097b91143ead834f87cb3a17538..adf5f284c70f92e0d4819d263ed42eab600d8342 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-prop-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Object binding pattern with "nested" object binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-getter.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-getter.js index 857d7101c2b645da63e4f0d575ec70d7888e20c3..c1ea7beb2b426a9a37a40b337c7f556edd7c38c4 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-getter.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-getter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-getter.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-getter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Getter is called when obj is being deconstructed to a rest Object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-nested-obj.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-nested-obj.js index e43f13c8a89a5c102ac2a85ed54b054015118ca3..077519e9d342bb1a4dc9c268100a8c1894bc0f00 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-nested-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-nested-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-nested-obj.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-nested-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-obj-nested-rest.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-obj-nested-rest.js index cc2cfc885a4ce9f295d7a9aae238889694e77ec3..7906c8d668cac193fc2c55618b029424ac3d404d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-obj-nested-rest.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-obj-nested-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-nested-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment and object rest desconstruction is allowed in that case. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-obj-own-property.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-obj-own-property.js index ff715eb1260cb874b8f06be6b7938ab72c454f54..1eccbf33dc1038b318218025a711ecf399ba1cae 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-obj-own-property.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-obj-own-property.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-own-property.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-own-property.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Rest object contains just soruce object's own properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-skip-non-enumerable.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-skip-non-enumerable.js index 2fc39d1c0969d9f3059104b5c3acc8dbde6232da..d36b5fb8b32a29bc158b6c757b8d8baf7c40159c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-skip-non-enumerable.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-skip-non-enumerable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-skip-non-enumerable.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Rest object doesn't contain non-enumerable properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-val-obj.js b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-val-obj.js index c1a732dc2cf2297c595bff1c15dc013846a15ea2..e5e3d99db1a73330dfe36125a975865ab8289488 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-val-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-async-obj-ptrn-rest-val-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-val-obj.case -// - src/dstr-binding/default/for-await-of-async-func-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-val-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let-async.template /*--- description: Rest object contains just unextracted data (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-init-null.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-init-null.js index dbdab0a47dd28f5d048d80bd10d86d383a14a3fe..43f93a0e419a9903b949a502f554fde652834c92 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-init-null.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-init-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-init-null.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-init-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Value specifed for object binding pattern must be object coercible (null) (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,6 +49,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-init-undefined.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-init-undefined.js index 0ecf2b2ffbb753c400f352e4d679ba0728656382..43a05efc582abac4e9079072b537e589df57337a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-init-undefined.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-init-undefined.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-init-undefined.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-init-undefined.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Value specifed for object binding pattern must be object coercible (undefined) (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,6 +49,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-empty.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-empty.js index 222d34f5f6f3f1dd1cb75c3bccf32697a5eb75c3..47b49456d2354916384bfeb0daf91fd7f467c369 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: No property access occurs for an "empty" object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-get-value-err.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-get-value-err.js index be24e507c00192a694890d014a96447374cb05d2..6b242e303637db9dd2a4edc29e04609bf4d9cef4 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-get-value-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-get-value-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-get-value-err.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-get-value-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Error thrown when accessing the corresponding property of the value object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 4. Let v be GetV(value, propertyName). @@ -56,6 +56,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-arrow.js index 74d62a13793028718e5f383f87bf9d41d0f4a1b2..c8e49c23e5ac7f42735cdd3f14405c2a6bb9b6f2 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: SingleNameBinding assigns `name` to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-class.js index dd1a28d8ed5c3cd4b7b2de565078f9218cf4d64f..fb5c25331086ea522539781697555942af0e18f7 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-cover.js index d83e4695a568c26e39899f41828ffd2a247384b2..e6ebb44596b09561486bfc1f4411de32fb596b52 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-fn.js index 7f24ce02eeb9d833ca773132de0c2c78a93bdfd8..0b0eef54697829ce32a5ef86221d70173531b800 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-gen.js index f9841fd8623c4c451f68e26ee72d76758d67df32..8e378bdb9b9d47c1b538b3a787e904cdb5a35f03 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-skipped.js index 87d5047438cbd23f1eedda0690d0dfc83723c111..fd73d5c94840dce7c7589cef6bb34bfcd094cddf 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-throws.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-throws.js index b0afd151cd2aa078087fc594fe31c752ce624c5d..0f7c478bd1ac6f584c7c4e1d1fda6e8bda69fa5a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-throws.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Error thrown when evaluating the initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then @@ -56,6 +56,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-unresolvable.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-unresolvable.js index f64640d0e04674837b3c21abe5c51561927cda69..fc617d219137bc6d2173b01333b5734bcd5c8754 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,6 +59,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-trailing-comma.js index 0899ad8da599b1351beb4fd5721725dd6fd1ec5f..8cbd7cbca967bf5d1708803866c367b705a84b04 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-list-err.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-list-err.js index 43ebe82541648234fe73214c1e35a612793d6b1e..284b8f28229d5bec8e37cfca7ddcaf8009a09737 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-list-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-list-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-list-err.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-list-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Binding property list evaluation is interrupted by an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,8 +55,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - -assert.sameValue(initCount, 0); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary-init.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary-init.js index fb006a1af26d4d84aae28171db467f61e63bbf76..9838ad030955a9b45e47cf6d03c1ecdb7b6e77e6 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-init.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Object binding pattern with "nested" array binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary-trailing-comma.js index 8e77a7d32969e1ed99659461c0355bbb218d9319..931a0567d3d43f59732e5da3ffc84856dd71858e 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary-value-null.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary-value-null.js index 65e7fc5a5cf8d134d1dc6b677cdef9e73c692120..d11eddaf696a90451eb11bcc874b8b6efa4fc465 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary-value-null.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary-value-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-value-null.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-value-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Object binding pattern with "nested" array binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,6 +51,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary.js index 22dc0a9409b3235a3b0290a0a0731231e8425717..70775e409846729ce7bcb41fac300888cb736e5e 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Object binding pattern with "nested" array binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-eval-err.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-eval-err.js index 2c0586bfafac9a0c1b7338fa1dbd8144e45afd32..fced0b08606a7b06ebefa25a2b67bfd698befada 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-eval-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-eval-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-eval-err.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-eval-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Evaluation of property name returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -53,6 +53,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-get-value-err.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-get-value-err.js index 3c538f1690eaea9500a33351b15601ee27b0ee60..b14aad04999ef67e2f98a1842ab3e562b31aa7fe 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-get-value-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-get-value-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-get-value-err.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-get-value-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Error thrown when accessing the corresponding property of the value object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. Let v be GetV(value, propertyName). 2. ReturnIfAbrupt(v). @@ -56,8 +56,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - -assert.sameValue(initEvalCount, 0); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init-skipped.js index 6f003d7f1e75b71d4a36934e642f752c2b184ef7..79039234b504271d2404efc4df69aa2f8012879a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] 3. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init-throws.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init-throws.js index 825458c4e2ab60700bdc5a823ac1cb0a2df2bb70..7956c2638e54158c1df703c3ed57211bc973ca6b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init-throws.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Error thrown when evaluating the initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,12 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). ---*/ function thrower() { throw new Test262Error(); @@ -56,6 +55,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init-unresolvable.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init-unresolvable.js index cf8464d69d9e9a57c1bb36f585dd83e5c15abb72..b0af4fba6253c564a1fc086cb29ac3080d8bbf95 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,6 +59,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init.js index ae8eb8de7faed1aa86869db60be8a0c8ad6455e8..ba840bd7ac9fee1ce10976cd4a414fc5e91eeb45 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Binding as specified via property name, identifier, and initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-trailing-comma.js index 1adcbf79d7d8ed7408a487894eb3642505055189..3a8111fd4162ee303b87b6e9f1126b14983f285c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id.js index 66be749d53f3537d0b8aac46a03043c7e30c79a7..b38ed5aa18f18eb7ba0809a01311914994c41b6d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Binding as specified via property name and identifier (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj-init.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj-init.js index 50893807068d58b01659c0db66743131d1a4af33..663cd8e8f65be9177cbac1bc12f2e6b774b6e116 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-init.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Object binding pattern with "nested" object binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj-value-null.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj-value-null.js index 144919852e60e3d4d50b0f42d70bca37d9eb4fec..37c11d0761b241975b7f2efacf86a95aba2123a1 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj-value-null.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj-value-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-value-null.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-value-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Object binding pattern with "nested" object binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,6 +51,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj-value-undef.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj-value-undef.js index 81f32098370d3bb69ba915fa30496fa111558e2d..1100d272ed02fafc78c03fd79d079f2863d89cc1 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj-value-undef.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj-value-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-value-undef.case -// - src/dstr-binding/error/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-value-undef.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-let.template /*--- description: Object binding pattern with "nested" object binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,6 +51,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj.js index 0c108d1fd5e92146dcc7b30fc829209bbd47e15d..74ec43242eb39a79658fdb3288df41f7331ff9bf 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-prop-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Object binding pattern with "nested" object binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-getter.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-getter.js index 2fc78747ff1e92ad4cb80594025011bc433bac89..891538b3f58ec8f2bbaccfa28b659b32f5e6cec2 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-getter.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-getter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-getter.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-rest-getter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Getter is called when obj is being deconstructed to a rest Object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-nested-obj.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-nested-obj.js index e5725c3e4f94dba7e91adcc9b04adc7f7498d758..6bdd1c3f9c2c44851615b123df066d804ed5c392 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-nested-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-nested-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-nested-obj.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-rest-nested-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-obj-nested-rest.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-obj-nested-rest.js index 3e3a88deb50c6716299877229b02a5e124a51900..5d7dc9bb07491f3d0bf715322e534c38cd4b0aa2 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-obj-nested-rest.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-obj-nested-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-nested-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment and object rest desconstruction is allowed in that case. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-obj-own-property.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-obj-own-property.js index 5379209b111cf0730f75a6fadb76bed3be9a8e8b..33981973e2035b6bdb3995a0ffa4ebbb0433cd12 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-obj-own-property.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-obj-own-property.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-own-property.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-own-property.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Rest object contains just soruce object's own properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-skip-non-enumerable.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-skip-non-enumerable.js index 1d74c3aafc57449b7add3ede2916338880b6afea..840ba6cc9ce80d81e116fb66aa2428bd74eb9446 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-skip-non-enumerable.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-skip-non-enumerable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-rest-skip-non-enumerable.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Rest object doesn't contain non-enumerable properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-val-obj.js b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-val-obj.js index 9eb47d4c77217dd8f4f1d28c54d7ad3ca5912896..c5410f346fff068ce734e3ad96acf8db3a42e57d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-val-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-let-obj-ptrn-rest-val-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-val-obj.case -// - src/dstr-binding/default/for-await-of-async-func-let.template +// - src/dstr-binding-for-await/obj-ptrn-rest-val-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template /*--- description: Rest object contains just unextracted data (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-init-iter-close.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-init-iter-close.js index 27b31e6181330a8be44db9ad793892a4b2aa6f2e..47d0799336401e3fd0995754a2fb69f113bcf5c1 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-init-iter-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-init-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-close.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-init-iter-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Iterator is closed when not exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -46,10 +46,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: false }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-init-iter-get-err.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-init-iter-get-err.js index c09e0e152c89006f483ea1ae33d8584abeac3047..18cd72221195c89208224872d45c6c5fdf65bc17 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-init-iter-get-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-init-iter-get-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-get-err.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-init-iter-get-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Abrupt completion returned by GetIterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -39,8 +39,7 @@ info: | BindingPattern : ArrayBindingPattern - 1. Let iterator be GetIterator(value). - 2. ReturnIfAbrupt(iterator). + 1. Let iterator be ? GetIterator(value). ---*/ var iter = {}; @@ -55,5 +54,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-init-iter-no-close.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-init-iter-no-close.js index df031acf1d0a6ac0fb7392a4d3625d052b227cd7..1d3d2f16b199170aa9e8c2c53651982b24a92e44 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-init-iter-no-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-init-iter-no-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-no-close.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-init-iter-no-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Iterator is not closed when exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -46,10 +46,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: true }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-name-iter-val.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-name-iter-val.js index 6eb6bd849de98bcb59b61d7dd6ad9e51dec77ca5..57ddce4eb1035c53ca8da81cd09b80ba06edd523 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-name-iter-val.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-name-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-name-iter-val.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-name-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: SingleNameBinding with normal value iteration (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,23 +34,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elem-init.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elem-init.js index 0ed5d56ff16d0191d63d6a2c8d7272a716e6256b..26bf8f0dcf7d5ac9966bafd6130b8df759088b53 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elem-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elem-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-init.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elem-iter.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elem-iter.js index 65951baaa8124163595ecec596190ea43e4cb04f..b43ff3a6c9aa65c5dbdb991c6bba6f43980e51e8 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elem-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elem-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-iter.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elision-init.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elision-init.js index 625dadd9ed84c7482b99e227b3711d77ceaa5828..9bee0d95f9738c48269af5382b7c15db752dd823 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elision-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elision-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elision-iter.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elision-iter.js index aa43eb95f85fc66e77c17f523b40ee0f6d2471fb..329761eaeec4d26e9db24f7e89e89a5254d3c6c6 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elision-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-elision-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-iter.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-empty-init.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-empty-init.js index cf52eb7722bbcca192c965993a8c5073d821be73..148b900f8829b1fcdc7162c92cf5b84fd441a4ba 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-empty-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-empty-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-init.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-empty-iter.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-empty-iter.js index eb10259862e370cadec5da21a86e02bde00edba0..e36c1295b54ec5b8520d843a849e31de26e2e718 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-empty-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-empty-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-iter.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-rest-init.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-rest-init.js index cf7c9135af5cbfe0fc019cbb2af33521a1de9730..bedf260853b08e544f30ec99f7989ae8609c449c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-rest-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-rest-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-init.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-rest-iter.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-rest-iter.js index 07cd286bf56ce05ac4d9dbf3f968c6c1201eeac8..5f22e8350003e90ce676fd35616bc3a47482352f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-rest-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-rest-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-iter.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-val-null.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-val-null.js index 251c81466a0d22a959cc58b9199ba5b4ef2928dd..9521b2e4b3d626d55b2ad745a2b72432ae583ad5 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-val-null.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-ary-val-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-val-null.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-val-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Nested array destructuring with a null value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -51,8 +51,7 @@ info: | BindingPattern : ArrayBindingPattern - 1. Let iterator be GetIterator(value). - 2. ReturnIfAbrupt(iterator). + 1. Let iterator be ? GetIterator(value). ---*/ async function fn() { @@ -62,5 +61,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-exhausted.js index c31b35584bda6047e430b8adb4c7281a4e4d68bb..832128ec20d979d4fbb267425f26bea77c53e16c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Destructuring initializer with an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,16 +34,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. - 6. If Initializer is present and v is undefined, then + 4. If iteratorRecord.[[done]] is true, let v be undefined. + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-arrow.js index 400f502f78eca8fc2c79e6fa1da450d756805227..e70ecfba9a0a50299f8897fa959d371492650868 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: SingleNameBinding does assign name to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,17 +34,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-class.js index 5682379720652f26d8a1ccc6c3631aa6f2ffee83..3f6f004bf1495c944f4febf113975cc068e72e2f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,17 +34,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-cover.js index 87c1e95e880e7dadced01f139c1d368ca4a1c8be..c3353d3c116229e1d0fca186542618a3f0b9f598 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,17 +34,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-fn.js index 47cd2f68c16c809a8b4dcc989450186fbdb111c3..2e170afc332b00ad7a5c2d817569a0a36a7c8ed5 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,17 +34,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-gen.js index 28263d1e0df44a03952ae799f381cc295a09fb3a..38c2e7c6f879fad6abfe6fb43c8d415401b4edd3 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,17 +34,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-hole.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-hole.js index 9084a691d0edca6b1b572af52c5fe504b02b7a9c..bf6e44573ea6c0e38d52f42c0295d965728a6feb 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-hole.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-hole.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-hole.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-hole.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Destructuring initializer with a "hole" (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -33,12 +33,12 @@ info: | [...] 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt - [...] 6. If Initializer is present and v is undefined, then + SingleNameBinding : BindingIdentifier Initializer_opt + [...] 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-skipped.js index 7586cce729f4aa400635b1f4caf3a1c641ccaa7d..272db39b4ca61fd24a250241075b00f9df62e61d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,13 +34,13 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then [...] 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var initCount = 0; function counter() { diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-throws.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-throws.js index 0a15bf6c94c66b69ec8f951f2583c7cfb9284a3c..339293907f8e563c662a762bb8f2e00af6618adc 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-throws.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Destructuring initializer returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,12 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). ---*/ async function fn() { @@ -53,5 +52,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-undef.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-undef.js index c26a66e1df0c220c92306d8f18373dc5d4a197be..68bb91d46fccd39b4e7202c1736b7c1388be5c35 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-undef.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-undef.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-undef.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Destructuring initializer with an undefined value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,15 +34,15 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-unresolvable.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-unresolvable.js index 4d90195ec8916bbfa5a970eeeadacdf4b9c4ff1d..bbd279162ad9f03c78d3d846fa06812bfa35b845 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,5 +59,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-complete.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-complete.js index 90aa918637803f3fdf7c6cb4dc49c28684a567e9..668ce3952c97a63f92c8ccc7f3bdcefe16565754 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-complete.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-complete.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-complete.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-complete.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: SingleNameBinding when value iteration completes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,19 +34,19 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-done.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-done.js index 936d89bac3fb37d16e816047f20b5c9d21c0e256..3b95726763791d0e068334ac20cc618ee497f09d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-done.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-done.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-done.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-done.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,14 +34,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-step-err.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-step-err.js index 7a7e676931ff836335d232015850d11595b36d66..39159deab290991df83b8ac1d08ff11b3663e505 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-step-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-step-err.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Error forwarding when IteratorStep returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). @@ -48,7 +48,7 @@ info: | var g = {}; g[Symbol.iterator] = function() { return { - next: function() { + next() { throw new Test262Error(); } }; @@ -61,5 +61,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-val-err.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-val-err.js index a80a43a4d74a004f2078b1fbf7046d3800ff4e79..e5ce20f5252f32da415ee2918c882ce6f45f7493 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-val-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-val-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val-err.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Error forwarding when IteratorValue returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). @@ -59,7 +59,7 @@ var poisonedValue = Object.defineProperty({}, 'value', { var g = {}; g[Symbol.iterator] = function() { return { - next: function() { + next() { return poisonedValue; } }; @@ -72,5 +72,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-val.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-val.js index baf1ab3417ba6c412577d22efee82d1825dfce33..f58ec1b32b2018e23e4d4178b76683710f515bf9 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-val.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-id-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,23 +34,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-id-init.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-id-init.js index ec7dfbdd395b32d090b689db96320227fd2ea605..4a051632b57486cae3a6ec94b835c9e5dd96f750 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-id.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-id.js index 73797fbcf1540afb9030a9cae06338e3aad37137..53f0e920ef063cc6eceb1af5e3fc65a6041d23cf 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-prop-id-init.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-prop-id-init.js index c1bf5caf936a6e5060ad97966c754e723d28454a..4fd25a375cb10589dfbfc5374caeba8b779155f8 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-prop-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-prop-id.js index 24bf014624840ca1d1b3cda1f9ef2f91dfdad9ea..28ebb2ab09f4ec5004541625e535b3b68e957258 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-val-null.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-val-null.js index b0c0d748c5d62f624e4c01df5f03b84a45c3a310..59b6b5b94aace2dc7febf5881a438803441a9816 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-val-null.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-val-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-val-null.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-val-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Nested object destructuring with a null value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -62,5 +62,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-val-undef.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-val-undef.js index 63dde3d756b1bd9ff497db833b8461ff7887d742..038126007783536bd331297e9114afbabbb05140 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-val-undef.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elem-obj-val-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-val-undef.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-val-undef.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Nested object destructuring with a value of `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -62,5 +62,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision-exhausted.js index e0a1d85eb0bf41dfc40bd1c068a112a9625e9958..4c2c2b890af6fb4a3e5c5cd12131e87b5179ba2a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elision-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Elision accepts exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision-iter-close.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision-iter-close.js index 1c1fe12e3a4c111711a439fd7bf6c7ad0b90c0bb..fb6fc16823f7acffc27d25827b9d8268d1e4d040 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision-iter-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-iter-close.case -// - src/dstr-binding/iter-close/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elision-iter-close.case +// - src/dstr-binding-for-await/iter-close/for-await-of-async-func-var.template /*--- description: The iterator is properly consumed by the destructuring pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision-step-err.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision-step-err.js index 838aafc87c8bfffd6b7df21376ed43b52bf1edae..489f1881c9e64930284ce14d78c4e6f48137f24d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision-step-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-step-err.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elision-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Elision advances iterator and forwards abrupt completions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -54,7 +54,7 @@ info: | ---*/ var following = 0; -var iter =function* () { +var iter = function* () { throw new Test262Error(); following += 1; }(); @@ -66,8 +66,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + assert.sameValue(following, 0, "iterator is properly closed"); + }) .then($DONE, $DONE); - -iter.next(); -assert.sameValue(following, 0, 'Iterator was properly closed.'); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision.js index 64c07e8719d8c7949d43ff5f0028f58252244ebd..df265c9f83792ee1c1a644924f5a47b79ecd4036 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Elision advances iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-empty.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-empty.js index c43287a64048943aa44f9acf7f36455334a27ea9..05c7a8b7f0db6e607809b2da82be51f132780cfc 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: No iteration occurs for an "empty" array binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-elem.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-elem.js index afa58a81a343fb581e8939e89d9679cc14017822..c340dea34a267c10c9b49d8403119191c1150c9a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-elem.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-elem.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elem.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elem.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Rest element containing an array BindingElementList pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -47,23 +47,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-elision.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-elision.js index e29f682722d39d23b30321495b866fb1d2452460..2175f0bb4f2539c59d432ef93efff9ccf92d476c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elision.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Rest element containing an elision (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-empty.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-empty.js index f022e2877b6c20b0010144293f11497db63dc905..fbb554ca1ec0b8d62862d9ff78227ccaea410300 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-empty.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Rest element containing an "empty" array pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-rest.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-rest.js index 7210eb1e51288e78122860af47642fb733347db4..537070c14f51996b53a6e9256506b7ec0b8e637b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-rest.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-ary-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-rest.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Rest element containing a rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-elision-next-err.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-elision-next-err.js index 27a1c063fa88a80e807eb30acfb841d85fa46cc2..f7ed0ef28d74fb9f5209613748e93d30cb94cb54 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-elision-next-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-elision-next-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision-next-err.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision-next-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,5 +55,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-elision.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-elision.js index 7911863e79d7c231ac238b9221c9bdc5861f4f51..7300b65618b5d4c1795f491531d5a9a74ed83812 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-exhausted.js index 5cf395ff6c45c721e34cc6fecd3e8e3e32382154..69d8d71c1f79b6a41de484a416fa8c088d8d5e64 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: RestElement applied to an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-iter-close.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-iter-close.js index e58ce4b28bb4fc445429db2795581231406652b9..c21307123bb00d0638f5fddf934e6eac13986ddc 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-iter-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-close.case -// - src/dstr-binding/iter-close/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-close.case +// - src/dstr-binding-for-await/iter-close/for-await-of-async-func-var.template /*--- description: The iterator is properly consumed by the destructuring pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-iter-step-err.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-iter-step-err.js index fcf8a39f445eefb267ee9f6f62cc0136cf7f157d..a191b3f795b34c71f88615d82c51d0ddadcc2fbb 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-iter-step-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-iter-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-step-err.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Error forwarding when IteratorStep returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -62,9 +62,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - -iter.next(); -assert.sameValue(first, 1); -assert.sameValue(second, 0, 'Iterator is closed following abrupt completion.'); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-iter-val-err.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-iter-val-err.js index 48332e26bbbee77e2336be0ab818db877df667f9..8f478b47e0f2edd9e5b4ded5f48b8d3b0b41dc16 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-iter-val-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id-iter-val-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-val-err.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-val-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Error forwarding when IteratorValue returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,7 +55,7 @@ var poisonedValue = Object.defineProperty({}, 'value', { var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return poisonedValue; } }; @@ -68,5 +68,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id.js index 69d0065bd717628893c57147f0ca9342497a1f72..cc3fe426cbc633b30f7a49c44dc3e2e2aa1f5d45 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Lone rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-init-ary.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-init-ary.js index b08c8cc90adc5aca298558fadfc3b3118d1e6669..43c419a29d4b108377441f33380e8688cda50c72 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-init-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-init-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-ary.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Reset element (nested array pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-init-id.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-init-id.js index 0725f89b6b8916fa50310e7a0509bb1d9ca29ddc..72ccd145853aa366311c3bc48b88f912de498ef4 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-init-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-init-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-id.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Reset element (identifier) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-init-obj.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-init-obj.js index e6b50cd1c92eb5b79cc4c08452f9b4dd57f1d243..3900ed2d634a3eb1ca3fe5e2d007e931b49c44d4 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-init-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-init-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-obj.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Reset element (nested object pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-not-final-ary.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-not-final-ary.js index c990ecf539e006bbfbfe2f05af655c0dbc9192b4..aacf641545376b9e43893f375b3efbb09c84c49a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-not-final-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-not-final-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-ary.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Rest element (array binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-not-final-id.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-not-final-id.js index db176495ae4e9146f39094ccb1f292faf95aff98..8ea77ba47c62abd572dd0723f652a7657d66ca17 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-not-final-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-not-final-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-id.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Rest element (identifier) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-not-final-obj.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-not-final-obj.js index e6602b2a004cf16c0b6996cad56120733d53ff85..6865a4e05bba690f05d818203c88db26c2cfbfe7 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-not-final-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-not-final-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Rest element (object binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-obj-id.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-obj-id.js index db45d7e2e5cb3f46eb3346e65399e9c5f321b378..ee673552c3bd4015330e4fb68c2a1e7775327384 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-obj-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-id.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-obj-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-obj-prop-id.js index 4803214e57aa11b7f457624725dec5d916191ac5..b908735de93db5d46a5bbbb2127f9d652291f678 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-ary-ptrn-rest-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-init-iter-close.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-init-iter-close.js index 3d64352fa247f2574be1fbbe058bde6f7a62c6d1..a46bb256f57817db98d37a23b178ae994d5a4d40 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-init-iter-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-init-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-close.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-init-iter-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Iterator is closed when not exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: false }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-init-iter-no-close.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-init-iter-no-close.js index 2a8b27f6d064c66ec1e0a5266f34131f7fec1c8b..bbe81b8ed672ac127f0742c498a952eefe2d0466 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-init-iter-no-close.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-init-iter-no-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-no-close.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-init-iter-no-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Iterator is not closed when exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: true }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-name-iter-val.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-name-iter-val.js index ffb4c0372376a8c16ccf71cc01224e5d06a7703e..bcde52cab1ee5b177cbcc8940f8f8cb1d7c9342d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-name-iter-val.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-name-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-name-iter-val.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-name-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: SingleNameBinding with normal value iteration (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elem-init.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elem-init.js index b6f692f23b97b87b00748e1e35c67e43c2e0710f..ecdde48130eb3748c293a1fecd4324b2f558744a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elem-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elem-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-init.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elem-iter.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elem-iter.js index 3118d453f3bec8ed2a7f0a911306282495bbbefe..b2297f989203c435392a427035dfc5778834b988 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elem-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elem-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-iter.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elision-init.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elision-init.js index 935fbe20b8e64616a825f909632822eeb5b6ff2c..1636ea82cd9c20b1cd3d64dc87e1483d82c04a0c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elision-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elision-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elision-iter.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elision-iter.js index 279603fa7fbb389320df27cca4435a81f490f15a..9de35a45ae38910b9ba84b027902c4cbb1f85d3f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elision-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-elision-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-iter.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-empty-init.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-empty-init.js index 32f0130df22ce5438e2de29f5c8e779a44fbc997..24c8ca7b445ab211e0e423819145b1547f60b406 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-empty-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-empty-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-init.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-empty-iter.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-empty-iter.js index 5893efc900f05432921616a0cba9ebe0331fdc67..fab1ca716f9ed74debf6fc5b19fb2cd4f6119e1b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-empty-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-empty-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-iter.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-rest-init.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-rest-init.js index 17487015962c12b7c81893c322c077ceb364d1a1..98147bc00c9d6aea4920b977075329e2f842a497 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-rest-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-rest-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-init.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-rest-iter.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-rest-iter.js index e56dde9f13d63e85efbcfa9d480b3b4a0be00335..be774f8547ada7576339cf6bbf3c1e169baf2312 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-rest-iter.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-ary-rest-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-iter.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-exhausted.js index 1607455627ee0722864479e6833cc7f4cd0697de..4fc8a9ba1f2a44fe12611bcdb66073b43117fc0a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Destructuring initializer with an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,16 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. - 6. If Initializer is present and v is undefined, then + 4. If iteratorRecord.[[done]] is true, let v be undefined. + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-arrow.js index 966b522507ef16d3e14a9ec39fa2720199b4d765..748c3555751a0e529bd18c4915f9da0d20a3f815 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: SingleNameBinding does assign name to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-class.js index 3b594b8d767be8092c527a8d8c3c4f0066f32a7c..09ece47eebe2e46a54c3ad541cdb4c66b615464f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-cover.js index a04e3fe5a61c0ddd518b4d0e81ac49c0b1c78099..6d7f97105f586b36833f9e1b268bee3c54d22c11 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-fn.js index 030f4a7beb6d0a80478601c0769f9d3ef83e2f53..29d455e14d8108ea564e33517d2b5a5203a7a16e 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-gen.js index a9ef7113e1636a7c39eb8e1496bbf17f395cc2cc..8e4a43b2aaa58da2ca1de5d7e269b2cd74f83b04 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-hole.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-hole.js index 9dc084455788c0dd99aee9010f4021de0f3e753d..8a999e323a8cb37fcd293eb442d91b3a438df423 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-hole.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-hole.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-hole.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-hole.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Destructuring initializer with a "hole" (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -36,12 +36,12 @@ info: | [...] 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt - [...] 6. If Initializer is present and v is undefined, then + SingleNameBinding : BindingIdentifier Initializer_opt + [...] 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-skipped.js index 2e054ddd281de6d53180b72f5048dd141dd22f3e..a6fe5c67914043ed8c7910c0d925825ec03dd59d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,13 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then [...] 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var initCount = 0; function counter() { diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-undef.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-undef.js index 119b9540888a76c1f776918c7e19909f2025a88a..09d1e548279da4b0a350eeaabc73628c2d5480f3 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-undef.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-init-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-undef.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-undef.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Destructuring initializer with an undefined value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,15 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-iter-complete.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-iter-complete.js index bdf6257fc6a389aab822975ce2c2a05c88ccd6e0..b562fe11270e542a08f44b3e9e121102b21f57c8 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-iter-complete.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-iter-complete.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-complete.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-complete.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: SingleNameBinding when value iteration completes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,19 +37,19 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-iter-done.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-iter-done.js index 36f1612d96868cb1c0a5be29a6cf153b2bcc00f9..d8749af5be3882760432522ad63af72482947890 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-iter-done.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-iter-done.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-done.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-done.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,14 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-iter-val.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-iter-val.js index b1991f50daa7978c533027e6171caf724995d5b0..f8b4a2f46135f2e625dfb119ca38f81ab81e9c5a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-iter-val.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-id-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-id-init.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-id-init.js index 3a5c0567b795c6eaa62945764983ab0cfc06cb8e..5533242f74b45de6c39a4300b8f00036b30f9653 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-id.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-id.js index 77989c0c5f9c2b8f520124be2a30e27a3847b971..848b47e87b68574c8ff21fee9f69438364ab452d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-prop-id-init.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-prop-id-init.js index 7b2bdf870f78833532e5fc3a6049a2e73456e613..b85770dbec79798043d3206653ed99d1d5dff1b0 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-prop-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-prop-id.js index 3b3205f6ac184f18883caf4daadf88983734e003..3449215ff750ce2dbd1d75e44d7ccc01a1f90f35 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elem-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elision-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elision-exhausted.js index c2a92d6b192e9dc1e9ce0f2c9540a02a30e3b1f3..a2adcebcc15ae2e48810e529860e4acb331cf411 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elision-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elision-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elision-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Elision accepts exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elision.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elision.js index b214ab9540aaaeff69ad624c7cd97b7965a5d3ae..c006949e5f72ec67703b6e6ad34d07337acac64a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Elision advances iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-empty.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-empty.js index 6eb948798f4ced2c187e8ff402e492aa7ed235e5..d35ffbbfae37cee94c5f10d2b56b5b08b0ad585b 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: No iteration occurs for an "empty" array binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-elem.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-elem.js index cb8f1355f1dd35951b22454c0c08d3d3bfe36527..e861a2b17a806b194fe32f78f54e30bdd3f6743a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-elem.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-elem.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elem.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elem.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Rest element containing an array BindingElementList pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -50,23 +50,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-elision.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-elision.js index fc9285fc58ebcd489e9c9709e901a53519750e5e..45b829cb1732cc092e0b79277c0f7cf0f73e83ea 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elision.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Rest element containing an elision (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-empty.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-empty.js index d4523026b05d47f77d8b4867a924798210f6d7f4..2e406b60505269e8cfe410bcebdc49143f8aa5da 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-empty.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Rest element containing an "empty" array pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-rest.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-rest.js index 676d7052666c92e62d21962be435f01d509e11f7..4e6d5e1c7d28929d0f2f26a7031b3e02db22d205 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-rest.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-ary-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-rest.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Rest element containing a rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-id-elision.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-id-elision.js index 671542740d90976eae1fe66d35c8ad24d4c8c208..17fa0285fcd12b837a600c2157fced57f6459b69 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-id-elision.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-id-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-id-exhausted.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-id-exhausted.js index 29dab2740e18a057ede960654bc11a978e88b9b8..59f5b16b4b8ab316645e4a43e467cb7c17f73fae 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-id-exhausted.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-id-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-exhausted.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: RestElement applied to an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-id.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-id.js index 34e1663c2345bacffe69f5a88135400d1d0bc9df..e12f29b9079a114c7d491f7a0ba005b3b7c96d6a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Lone rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-init-ary.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-init-ary.js index c6999d35783be596f8b468cf0e52c6efadfdddca..f8a840b7984de5e4a853f180460cc5326e928462 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-init-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-init-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-ary.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Reset element (nested array pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-init-id.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-init-id.js index e9aafea0ef2790123fadd070da14f81c66d04e8d..5e67a8d904ea27073b5e7ca7be193c9e84c009a2 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-init-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-init-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-id.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Reset element (identifier) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-init-obj.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-init-obj.js index fb517fa3781ac9685f3a84e915e9672484c9380a..4d201cf5b4db95e9980e8ee8b0fe845787619d9d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-init-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-init-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-obj.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Reset element (nested object pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-not-final-ary.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-not-final-ary.js index ffe7b062dce6dab67510d84f782a832348f277ab..d1263e0d14d958f6a9c98dcab9ad051abf8642bc 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-not-final-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-not-final-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-ary.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Rest element (array binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-not-final-id.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-not-final-id.js index 539c7701ac9bb1cf48392b3bb98fabbaf21be320..4c1f44ccf47d3e340679240fe0c6c0d852c32d99 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-not-final-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-not-final-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-id.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Rest element (identifier) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-not-final-obj.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-not-final-obj.js index 87e714cee0d9d4cfaa8fb05956a1c3a12c6b6b73..50ae14fc129a2b0089b686d780c8b02d6c26e831 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-not-final-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-not-final-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Rest element (object binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-obj-id.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-obj-id.js index 616cac388239be9610ebfac69dc695f2854f91b0..d0146826047fa7b643d260d6c317a3923c2e74a3 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-obj-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-id.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-obj-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-obj-prop-id.js index f224e00219360ee1c382e7945bd8877dce1d8435..bcfd217805c27545883ea2129bc76cfbcf8f9b6a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-ary-ptrn-rest-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-empty.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-empty.js index 50635bff9fa8fa85e9a0671639b54ed4002b8cb2..13722fc1def7f1229ba46b97f39a5072551ccac3 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: No property access occurs for an "empty" object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-arrow.js index 12cec7f4ec2c68505d04bf6bf3fc606758a64075..c2ca047875458798d4ec4a806dca1471c5db1df0 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: SingleNameBinding assigns `name` to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-class.js index aee417404bc28363a049203c9b68626ff96b8de9..98078587f254d904300597ce0eb25edbd8b90546 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-cover.js index a09c6b646de890c633fab8417fe57fffb2b7db50..1f15d932045a10a389e8459c81c883ae367365e3 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-fn.js index 96a25c8d93ad95068f0cd64ace0ca0deebe2fc9f..2b8c5b9c1949964a2340b275b34d22285060a87f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-gen.js index a7747873cc6079e46ead6caf4c6e5f6f4d967259..776d591db67df529e3d494db53be2c5ac5bfc035 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-skipped.js index f92c695c1f2ffdae8e7dd306be494325c1636871..3d8ea4b7385654c8c6b0ed7e703aa0dda870a356 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-trailing-comma.js index 35d763515f6718a3b44ca2e23db1955c880d3618..94e8194920c1675d6b4e006d2e4ba9b773b5f162 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-ary-init.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-ary-init.js index 835b4ac563e2e1a491882ab6ca7eec7f02d1d53e..b0e17df0fe359a1b6243927fed52d616cb3f7ab9 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-ary-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-ary-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-init.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Object binding pattern with "nested" array binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-ary-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-ary-trailing-comma.js index 7afeb0dcdf600857913c777142843519f1d94693..321da15b86ff24f0776520e10e3cecf04c14a827 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-ary-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-ary-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-ary.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-ary.js index 719d73f6a6bae066ccc0b6be7a8a73590661107f..b3843756e6c2e5bbdaac7b2ae07cbc73f52dd079 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Object binding pattern with "nested" array binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id-init-skipped.js index 118c1d010a15c88d69ed64e4acfdc55f0263a58c..2e1affe31368bfc89263aa77ac4261455ba059bd 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] 3. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id-init.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id-init.js index eee0d11bb43d80ce75ec317ebf1443a39a4e6c7d..0e8376cc866c727ec02dc45b642cb44cbfe9e866 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Binding as specified via property name, identifier, and initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id-trailing-comma.js index ff706f64f3009eab37c03dd4b26d6ea96cbc2123..3195ed58013f32c86ee80ca3a2ae64c55452b66f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id.js index d060f1b30fb8f11de95f94417303df805f96d4f5..63bf50dda098faf17b78790ab8ea2831a6566c09 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Binding as specified via property name and identifier (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-obj-init.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-obj-init.js index a62f5955c2cf7b4dc06adfb3af8e89658a2b957c..fb3c9457194d20ceeb80e93d8b811b6e71454b1a 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-obj-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-obj-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-init.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Object binding pattern with "nested" object binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-obj.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-obj.js index f531e0e7f305e9ee3b43bed70e2d2c876804f9c7..1bb5bce733ea6bd076f75bac1c5066da10231e98 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-prop-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Object binding pattern with "nested" object binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-getter.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-getter.js index 0e3f879f3a3eec87b50920b10ccbb683a36f5ddb..b66863ad6b2d25d549dd6e66765e770f96cae3d5 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-getter.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-getter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-getter.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-getter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Getter is called when obj is being deconstructed to a rest Object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-nested-obj.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-nested-obj.js index 2741c5fc7d68e8c06d6fd9ccebeb0d24f2d297e7..da562ea3b1726aa5af1a14eb0b7071e1c17a340e 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-nested-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-nested-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-nested-obj.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-nested-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-obj-nested-rest.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-obj-nested-rest.js index f675813c1b6f299504d305d8e985a1968d0f9406..9b4002a25fe8f784061b3ad568a229121d4e9b65 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-obj-nested-rest.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-obj-nested-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-nested-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment and object rest desconstruction is allowed in that case. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-obj-own-property.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-obj-own-property.js index c02173fbca0287a4bcb6ad1aa27164d10cf6a5d8..68c6c4ad4247a5f2420a5dedbdbdd354d00179bf 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-obj-own-property.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-obj-own-property.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-own-property.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-own-property.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Rest object contains just soruce object's own properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-skip-non-enumerable.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-skip-non-enumerable.js index 2f914454a9cb40d6d080a0d30ea898e9116ea275..5d5dba0d06940503126b8f710a4c08f89d136547 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-skip-non-enumerable.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-skip-non-enumerable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-skip-non-enumerable.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Rest object doesn't contain non-enumerable properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-val-obj.js b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-val-obj.js index 87edd0d287fc5cbc03dd4d1c941b2d1f62c8a569..d52a1b6697d2db2defbbf9f8007e13f63604bfff 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-val-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-async-obj-ptrn-rest-val-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-val-obj.case -// - src/dstr-binding/default/for-await-of-async-func-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-val-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var-async.template /*--- description: Rest object contains just unextracted data (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-init-null.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-init-null.js index ab9469b3d5dcd9fee8485ae66196c577b9e3b6b5..5325842c6ba651fc72e6141f67b82b3aaee2db93 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-init-null.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-init-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-init-null.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-init-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Value specifed for object binding pattern must be object coercible (null) (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,5 +49,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-init-undefined.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-init-undefined.js index d2026d788d2083777c71ffe4ab2e4a90326a4ec1..572ea5d50ef3b01feadb98cccc4c860c9fbe1930 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-init-undefined.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-init-undefined.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-init-undefined.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-init-undefined.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Value specifed for object binding pattern must be object coercible (undefined) (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,5 +49,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-empty.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-empty.js index 802d869fdd94dd4e31c077488be2f7b448dc31fa..24bb90c5e56cf823f758638bfde22248381255fd 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: No property access occurs for an "empty" object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-get-value-err.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-get-value-err.js index 59a250c047a6fec9c5b75bda2a106882d135ceb6..78dcbfa9396bd3a59b43445189f90e909118d955 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-get-value-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-get-value-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-get-value-err.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-get-value-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Error thrown when accessing the corresponding property of the value object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 4. Let v be GetV(value, propertyName). @@ -56,5 +56,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-arrow.js index 9b3f1da3f633b243c3bea4e2a02315d815983b1c..a4b83541daad92bfdae10da2ce9fa78aacd948e9 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: SingleNameBinding assigns `name` to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-class.js index 99367ee72dc4eb4708f102b4d4237fafb9adf903..376637fdd07dba349cbf1ef9f505d73977b3c267 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-cover.js index 60cec3cf04fce59f18cc9cf7432c528d5f9d40cf..e8b4e5c41b15832bfe2fa575471539c356ed6059 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-fn.js index 79c22534b986a9f38721da9157f0a33a998639dd..cdd2bcf296b2b99a1c88b1ca7cd1ea5100e678d2 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-gen.js index 0c2b31302a5d2382441b888e18f4969803aab619..f0f05a1ab514466e323a43a6951e1f21d11b775c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-skipped.js index ae150b10caa3f974576851b8b17f0a973f8808e6..dfa6faa5273e28ad5f8038da7b076538523c0a15 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-throws.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-throws.js index 546834c49acef41caa093bbcb9055e9240d98571..87a6b2dbaedb9df4cdb724c362b1bc32c93cd902 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-throws.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Error thrown when evaluating the initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then @@ -56,5 +56,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-unresolvable.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-unresolvable.js index c502db56581c0268df499b297aeb1070596aeb15..b918b2f3507b039fd017fa3a9707070dca0165eb 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,5 +59,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-trailing-comma.js index 2ad826dfe100a9ffae565a93c5893746b250f1d5..21c3b2906be49635e4d0d6c0536f042be497afce 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-list-err.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-list-err.js index f8c8473f5f9825c958349cc107cb60f45fce0761..7eccde28d8da6e73e6471fae216e9686659bcb54 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-list-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-list-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-list-err.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-list-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Binding property list evaluation is interrupted by an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,7 +55,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - -assert.sameValue(initCount, 0); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary-init.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary-init.js index c96936a6326531309dede0b11f647455b600c49b..1d80b153b389a1358d5d7201f559c86f4b10227d 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-init.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Object binding pattern with "nested" array binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -35,10 +35,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary-trailing-comma.js index 090f991e6d30e445c8e4da5f55efe6b4056b4f8f..7aac48f20542439bc7d081ec21b970a127c23157 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary-value-null.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary-value-null.js index c28b7f0f3888ccd6debf1a61dcba81207a81afa1..2129067bffddd0880e8338dccab9615de245defa 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary-value-null.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary-value-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-value-null.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-value-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Object binding pattern with "nested" array binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,5 +51,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary.js index 9ca95e6d436617708c1025e83e7747b216a65f86..ee616eb0446be03bb948b1c8d45d762a4cfa8ed6 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Object binding pattern with "nested" array binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-eval-err.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-eval-err.js index 6163b5943b1db43209b2c4d77a9382f84520da07..5dfaec59be4f928f2397bd9ebededecb42833487 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-eval-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-eval-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-eval-err.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-eval-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Evaluation of property name returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -53,5 +53,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-get-value-err.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-get-value-err.js index efd46c54a41da341a054fa92e5fbddc7e825e06c..0d9f3bd2c5db597fb353d6afd92d52fd74647336 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-get-value-err.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-get-value-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-get-value-err.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-get-value-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Error thrown when accessing the corresponding property of the value object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. Let v be GetV(value, propertyName). 2. ReturnIfAbrupt(v). @@ -56,7 +56,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - -assert.sameValue(initEvalCount, 0); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init-skipped.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init-skipped.js index 0fa429ed50602ffe81c036970b48fd973c57395d..4b6ff735d631e1ba67db62b2470d8c037b9dacd5 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] 3. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init-throws.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init-throws.js index fdbba6ad72466073366e897570c46722ae8d1252..bb654840587c84eed0e1d7ee6276f589f2dc42df 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init-throws.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Error thrown when evaluating the initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,12 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). ---*/ function thrower() { throw new Test262Error(); @@ -56,5 +55,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init-unresolvable.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init-unresolvable.js index 3992c982de2cda9e56c639fa53e0d7699c7536b6..757bf5574ff73c87959b7a9fa19966bc3f0951b6 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,5 +59,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init.js index 378d4cbac1080218b0c0e4f07fe79110280672f3..73707c1ab3cd701e92c09d3e22f48097a3d623bd 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Binding as specified via property name, identifier, and initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,10 +34,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-trailing-comma.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-trailing-comma.js index e7f454f5de9c6fb41ff7a06cf221a5ef831c3954..9f5b13e422359a2d33119c336950bf1ebe96a122 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id.js index 9de2f864f02f2c2ec4c5abe8d119bf37c35e2140..cae2c206c77e73630a83f6b8847a3c5c2072876f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Binding as specified via property name and identifier (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,10 +34,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj-init.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj-init.js index fa0b3cf577da3b052a3447bcff3aec81ccb86f84..3cfedb134573443e979c09b7b7705aed0c8b83cb 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj-init.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-init.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Object binding pattern with "nested" object binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -35,10 +35,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj-value-null.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj-value-null.js index ac04f8bbe72da4436841c53898509af6a50efe14..d6230154ef80f505ed8b963a9ef6d5b8e8113a6f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj-value-null.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj-value-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-value-null.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-value-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Object binding pattern with "nested" object binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,5 +51,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj-value-undef.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj-value-undef.js index 0938b4455016dc94dedf86a69be35354298d6232..d3d8a562ced0a1c8dfc0dd8f5d2638b2d04ee608 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj-value-undef.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj-value-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-value-undef.case -// - src/dstr-binding/error/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-value-undef.case +// - src/dstr-binding-for-await/error/for-await-of-async-func-var.template /*--- description: Object binding pattern with "nested" object binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,5 +51,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj.js index 6079eea226160b26d50651b15412977e9a682e29..e66158e6344022c743967ddd65e8ebbc5832ed91 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Object binding pattern with "nested" object binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-getter.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-getter.js index 2dad6f9c206fda782a9912d0a97c026dd762ba25..021692665797a966bb059dc2b308a3af02fb890f 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-getter.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-getter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-getter.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-rest-getter.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Getter is called when obj is being deconstructed to a rest Object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-nested-obj.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-nested-obj.js index 9e94f053c98073efc682fab71e5c5ab76768fa94..f7db9989bdb52a5adf0969cd0cc7d9d3dc0a2df0 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-nested-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-nested-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-nested-obj.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-rest-nested-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-obj-nested-rest.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-obj-nested-rest.js index 76e247f6bc4a9bf4c1640b0c8d77761b35d600e0..9ff701111d314fa367e18622d6c45c818c31ad46 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-obj-nested-rest.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-obj-nested-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-nested-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment and object rest desconstruction is allowed in that case. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-obj-own-property.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-obj-own-property.js index dc4b7135b09900c7cfff20b8e4a8b8b6184346a5..c90cae8de000769554548411f8ebcc42ef33c047 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-obj-own-property.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-obj-own-property.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-own-property.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-own-property.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Rest object contains just soruce object's own properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-skip-non-enumerable.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-skip-non-enumerable.js index c5404d216026464d6dfe74afb1118908936ddb08..ddbf1c1e3f5849e53dfb70ee7d29fe012c769d8c 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-skip-non-enumerable.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-skip-non-enumerable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-rest-skip-non-enumerable.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Rest object doesn't contain non-enumerable properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-val-obj.js b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-val-obj.js index e6397f6d454b6228db085b366b9b87955bba9960..943fa84a7f0d236a5d1a49609f6b62cbdc536df3 100644 --- a/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-val-obj.js +++ b/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-rest-val-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-val-obj.case -// - src/dstr-binding/default/for-await-of-async-func-var.template +// - src/dstr-binding-for-await/obj-ptrn-rest-val-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Rest object contains just unextracted data (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-init-iter-close.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-init-iter-close.js index 26eb8f290543419f92ff8d827c0ecd2bc61fd393..5701efd1074290024a0a13dfa1f1e2e94a86d160 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-init-iter-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-init-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-close.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-init-iter-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Iterator is closed when not exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: false }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-init-iter-get-err.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-init-iter-get-err.js index d9409274ff2d739c61dbcc4786f95f8984ea646f..17705fef9e2416355da14354575f25fc43c875f0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-init-iter-get-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-init-iter-get-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-get-err.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-init-iter-get-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Abrupt completion returned by GetIterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -39,8 +39,7 @@ info: | BindingPattern : ArrayBindingPattern - 1. Let iterator be GetIterator(value). - 2. ReturnIfAbrupt(iterator). + 1. Let iterator be ? GetIterator(value). ---*/ var iter = {}; @@ -55,6 +54,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-init-iter-no-close.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-init-iter-no-close.js index 03e3299dda438623541e18f5621fb9eeba187ad7..ce3016a146176fd466e0bb7a812dd30e4fb8a2d0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-init-iter-no-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-init-iter-no-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-no-close.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-init-iter-no-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Iterator is not closed when exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: true }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-name-iter-val.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-name-iter-val.js index f8ed8249f19b98dbce8ccee37f304e665b6331fc..31fce019240b2ada40b4049a6cf961bbcfce696f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-name-iter-val.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-name-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-name-iter-val.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-name-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: SingleNameBinding with normal value iteration (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elem-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elem-init.js index af0eaac66297fcb0faab712200754b4c23366f3a..0a643bd4b76ca20cbb37ba21d631a760a7654b24 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elem-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elem-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elem-iter.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elem-iter.js index cc85c0612e69c50efe2412fcaff84f426e4bdd07..c8436c65d6bf614770a6d4e11a7244835cf16db6 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elem-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elem-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elision-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elision-init.js index 5f95a9399d5468f6073c44d5f31fee8b8b2a7791..42176a7f514a1a74332367d985fceba478f3daad 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elision-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elision-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elision-iter.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elision-iter.js index 26d3265821dae6389da71ddf3373139ba65fa387..2fedcc4c6e6709f703785861b266d188d3ce5abb 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elision-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-elision-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-empty-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-empty-init.js index 63699ca516c630dc8cd3b4c5498c2b5efa2b974b..a5c5cd3a6d636bdfbe74e7d96a029185163c3824 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-empty-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-empty-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-empty-iter.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-empty-iter.js index afeee856b3fe658439d61394047a1bcbeb6864bf..afdb853f4a8f3b44c9d743f31b557daa5ec34f22 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-empty-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-empty-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-rest-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-rest-init.js index 6778f3a109c48c55492ee0afbd148c878f79f792..fdf8687d6c0916f07284fa509f7246a3e6f9fe0d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-rest-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-rest-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-rest-iter.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-rest-iter.js index 6fc3f1e7bc63b7f9990f85924970f1de03c6147c..7384d46dbc14ca9c7e405b369ffe92f3d0b517e2 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-rest-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-rest-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-val-null.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-val-null.js index 08b0984ce5d7a7bd5160ae90ce65a5b8de0d5ec0..5d39ebda70d6f2a41979730321f6725c705cddd0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-val-null.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-ary-val-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-val-null.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-val-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Nested array destructuring with a null value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -51,8 +51,7 @@ info: | BindingPattern : ArrayBindingPattern - 1. Let iterator be GetIterator(value). - 2. ReturnIfAbrupt(iterator). + 1. Let iterator be ? GetIterator(value). ---*/ async function * gen() { @@ -62,6 +61,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-exhausted.js index 4292a2d2aae94f633af8e4ea47ac631719802afc..d160dd90cf1098f2844d4811578b4550a233775c 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Destructuring initializer with an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,16 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. - 6. If Initializer is present and v is undefined, then + 4. If iteratorRecord.[[done]] is true, let v be undefined. + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-arrow.js index 925db70782a72254acc20eda11819f0fef62f57e..1f37260175950370c2635154ce337b3563cb6402 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: SingleNameBinding does assign name to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-class.js index f0822486da8d666c736b30511b5b89d0d2957117..97dbe80a8f87d1b930fc44d37e535697bdb2f573 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-cover.js index 1aaf9d3a33700a75b57914883aad9bd12a2c04fe..d4119ad7bfa2d46a5859e6f162a6b86b42bb90b5 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-fn.js index e1ea08f35956475c6be853504e58513aa31de3d7..e1e7af3d46472cfcbcd4493a1c7a0e7f5db06c79 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-gen.js index 297ee9f624ac487c2ab10cbde609e6e4c596c3ae..890fc70ff2e568660bd529814e17b06d16986215 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-hole.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-hole.js index cd05aad97be4baf9e616211989f37f32e3507f8b..0db5f797ccf9661dcbdff6bdf751500a5322e529 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-hole.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-hole.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-hole.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-hole.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Destructuring initializer with a "hole" (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -36,12 +36,12 @@ info: | [...] 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt - [...] 6. If Initializer is present and v is undefined, then + SingleNameBinding : BindingIdentifier Initializer_opt + [...] 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-skipped.js index 86afe4ac80e1635f5935272aaa82248871c597c3..99ad19eaf0096a1549f89a37aafabbf852d18266 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,13 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then [...] 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var initCount = 0; function counter() { diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-throws.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-throws.js index 06bb647b07f3a940a1bf75d6554c3c1616de31ff..7c1aa694477282c33de690c67d2792f9e37f4cc6 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-throws.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Destructuring initializer returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,12 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). ---*/ async function * gen() { @@ -53,6 +52,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-undef.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-undef.js index ef427fdd29e9a7f851eab57b4416d3bae1ea2f03..71ca6618d3b35d194fabdc58dcad3507ae665718 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-undef.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-undef.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-undef.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Destructuring initializer with an undefined value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,15 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-unresolvable.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-unresolvable.js index 49ebff0aec6a11450eae8882d677da4631b656fc..b75b74cf5ce946a7d976b11cd337310a698808b7 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,6 +59,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-complete.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-complete.js index 2a9395086df81b4758e271de206fef35c6c5d5f7..51b4810271c0a022f0291e7ffc0a440ac62017cf 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-complete.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-complete.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-complete.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-complete.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: SingleNameBinding when value iteration completes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,19 +37,19 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-done.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-done.js index 7aed0b37cb09452aacce5b15bd56d42053497859..a886651ddfb68330dd673437f6aa574602e006f5 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-done.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-done.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-done.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-done.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,14 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-step-err.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-step-err.js index 56503b9946fde4ef7c29cd92de0589f224c469ab..fe1b8b5021346aa4d7d476cb196b8d853241fc66 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-step-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-step-err.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Error forwarding when IteratorStep returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). @@ -48,7 +48,7 @@ info: | var g = {}; g[Symbol.iterator] = function() { return { - next: function() { + next() { throw new Test262Error(); } }; @@ -61,6 +61,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-val-err.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-val-err.js index 8be2a16a104686e16d057469d9a25db1c9f0db44..ee179c99f7915f45b5d607778779cb3cb5d57d41 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-val-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-val-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val-err.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Error forwarding when IteratorValue returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). @@ -59,7 +59,7 @@ var poisonedValue = Object.defineProperty({}, 'value', { var g = {}; g[Symbol.iterator] = function() { return { - next: function() { + next() { return poisonedValue; } }; @@ -72,6 +72,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-val.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-val.js index bf6ec309ac57c557a5c4d67329e2190a7f77fa1b..c6c46c93c29b8bb87c35f8bc3c62ca4f8e11e75f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-val.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-id-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-id-init.js index e0d1a04385286da7d9f2e61cdb79e83b3d716a8b..dccf38fc370f1e0374e002969c2c7ab861cfaf50 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-id.js index d7c93891f3e58336d034a8f66836c593cbbcdd5a..2d3c6d2823ac5a39b8e8434814079b5325c3e2f4 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-prop-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-prop-id-init.js index 36f0e288c60103bae3aff60baea253c1fa7f4607..053fb3d7523336a0879a483d60265ba0aaf64745 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-prop-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-prop-id.js index 85b6d95985b8d2387b165fb90af2d4b59e36c4bf..f8a8f520c74e5e1ec86cd792010980fd99b3f334 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-val-null.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-val-null.js index ebda36b6a7b8c3fc92516ba6dd099f9024bd93aa..b2ccc4fffa09ab4f3e5dfa5cea9d95a28d39a64a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-val-null.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-val-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-val-null.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-val-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Nested object destructuring with a null value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -62,6 +62,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-val-undef.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-val-undef.js index 7f30dcac7a5d851f435ae0a037b7cbb976ad4055..35ac5d8928874ac645378fa609d7552879dadbcc 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-val-undef.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elem-obj-val-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-val-undef.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-val-undef.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Nested object destructuring with a value of `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -62,6 +62,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision-exhausted.js index 196fa8c856e54ccd5d139f17afe490fafb04f437..3fb2a0cd3204e8f8f3ab622caf2a9fed5988df85 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elision-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Elision accepts exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision-iter-close.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision-iter-close.js index 80abd7a031341ad74061b1a2870ee9202900f33d..fd8d14770b4cac351c3ce43d0528b33590a4bc65 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision-iter-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-iter-close.case -// - src/dstr-binding/iter-close/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elision-iter-close.case +// - src/dstr-binding-for-await/iter-close/for-await-of-async-gen-const.template /*--- description: The iterator is properly consumed by the destructuring pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision-step-err.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision-step-err.js index cea351065b9753494756bd027f47dc6f4bb50869..c20cb981a7a7e800f9af99b79871407826592519 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision-step-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-step-err.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elision-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Elision advances iterator and forwards abrupt completions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -54,7 +54,7 @@ info: | ---*/ var following = 0; -var iter =function* () { +var iter = function* () { throw new Test262Error(); following += 1; }(); @@ -66,9 +66,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + assert.sameValue(following, 0, "iterator is properly closed"); + }) .then($DONE, $DONE); - - -iter.next(); -assert.sameValue(following, 0, 'Iterator was properly closed.'); diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision.js index b6bc1c31d0d9db11385915a55fe6ece3011b4d13..903528725b182ae2cc097fbae393b6c0a69b1a03 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Elision advances iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-empty.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-empty.js index dd8987b29821494c9305b2218591950d53f68ca6..5f3d2528e6862c51140b93c3413bd9b36cf61a85 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: No iteration occurs for an "empty" array binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-elem.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-elem.js index 7fd4c0465b58b7305e4f67a3b49687f7a6f22e18..42b56396bace170b3d94669fb5c372cbb7b0f09d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-elem.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-elem.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elem.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elem.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Rest element containing an array BindingElementList pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -50,23 +50,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-elision.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-elision.js index 0c6fea02289fa4cf668e74d86a0c2a21d7123e63..fb78bf0e5e88a253b376227e248ba0c8dea9c3b6 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Rest element containing an elision (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-empty.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-empty.js index 1c800b9ac30108b78b547966e22adf105e2ce231..81bc2cbdd0b6a6808c05c63a68194ebe5992b4e8 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Rest element containing an "empty" array pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-rest.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-rest.js index 371265d1f955fdd9e5f638f6d5c6a5e6f729e469..a5837f470082492874984918190b131472e83eb5 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-rest.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-rest.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Rest element containing a rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-elision-next-err.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-elision-next-err.js index ed6ab32edb2cdd76791da528c0f04b1f3c60074b..b7afb57a244786c08355f95432b42c0539f19a92 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-elision-next-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-elision-next-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision-next-err.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision-next-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,6 +55,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-elision.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-elision.js index 05d1ed7e9b7080616f33cafee5f5db8a36ae3837..f42c20af9c55509fcc3894b9f0f3b3d6e2b97b09 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-exhausted.js index e8a49e661163297c8ac96fd2cd0b4d3a45d106e5..9c76f2a5bcc6c30f21ce6d66e00f71956a1cc1ef 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: RestElement applied to an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-iter-close.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-iter-close.js index 45c51309f959da84ddc7dbcb213db2ed51ce5693..af61e2889ad33b71808163bba75b938476003743 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-iter-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-close.case -// - src/dstr-binding/iter-close/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-close.case +// - src/dstr-binding-for-await/iter-close/for-await-of-async-gen-const.template /*--- description: The iterator is properly consumed by the destructuring pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-iter-step-err.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-iter-step-err.js index a8d4e2584dcebe2c24562914b0a16dfe8180a49b..7d2f240606d8dff592bd32f2004691c7ecc6f8ba 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-iter-step-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-iter-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-step-err.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Error forwarding when IteratorStep returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -62,10 +62,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - - -iter.next(); -assert.sameValue(first, 1); -assert.sameValue(second, 0, 'Iterator is closed following abrupt completion.'); diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-iter-val-err.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-iter-val-err.js index deb85fcb547925efe3f98e58db16c4e006a33ea6..a7f05d4c1711c06c4f9253fe15ce3b9d5eb74fdf 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-iter-val-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id-iter-val-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-val-err.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-val-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Error forwarding when IteratorValue returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,7 +55,7 @@ var poisonedValue = Object.defineProperty({}, 'value', { var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return poisonedValue; } }; @@ -68,6 +68,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id.js index 7fab5dee4a1f3fdc53cf275585c5694aa474d87f..fe9baa8bd685d156da05afb69d0ba60e06fea6e9 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Lone rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-init-ary.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-init-ary.js index a95b0cf3014b59d2889d88fc81f5d04ebae19a73..7d1ad86a76d8667b96c01607768ce5ecf7a24ed2 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-init-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-init-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Reset element (nested array pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-init-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-init-id.js index 634b007b19b731e28b7637d1d9c59ee76c3450ba..646e7ec996cf2d50fab9cfaf3942c4fcb91df3f7 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-init-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-init-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Reset element (identifier) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-init-obj.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-init-obj.js index bca2b3034d3e8ec952b6ae133071d2e696d8e1b2..17bb60da94f8864978c7daf67f8faed1e6c325bf 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-init-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-init-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Reset element (nested object pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-not-final-ary.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-not-final-ary.js index 83eb75df96eb670d8458f36423ab54253db2cf26..506977174d9d0de0cbf8c4cd36205e31441c4ba0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-not-final-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-not-final-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Rest element (array binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-not-final-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-not-final-id.js index 3edb3c6db1fca3fd0ba5ffbcc2c60992183aec25..1e575fa4187f3cab4a87ee7e53dd85a847f10b02 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-not-final-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-not-final-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Rest element (identifier) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-not-final-obj.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-not-final-obj.js index 7ff192df0b41ddfc6e3c42bcb0696723d28a0047..143a5e26bc97b94b1540b06c0f1bc159a68ad528 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-not-final-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-not-final-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Rest element (object binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-obj-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-obj-id.js index 9e09997860e0073e2b6b5b2390c50c6c0b71cdd8..e2e998e58ee16d487224374101e17a5e8e0fcd0b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-obj-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-obj-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-obj-prop-id.js index 78f06cd961ca41cb49baff2ed5196a75e50c3d98..2624a59d20b4f0b8a3fb8dfec50a81ee61e06d20 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-init-iter-close.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-init-iter-close.js index 94d5b939ead28a6d7abeb95776c5ee6054cbbfee..988d61c5785218e37d529717e97ae696b0c99e0f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-init-iter-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-init-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-close.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-init-iter-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Iterator is closed when not exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: false }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-init-iter-no-close.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-init-iter-no-close.js index 6fa1d2c066f37232e5efe8f6c548c7789eaeb3e9..4a8a2be3a468fef973bdc291b93252b24691e05c 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-init-iter-no-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-init-iter-no-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-no-close.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-init-iter-no-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Iterator is not closed when exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: true }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-name-iter-val.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-name-iter-val.js index 73d3a0b51ae3c9c191d992d1bd5e2b66776a581b..7547f41b87ce4787bb3742230154a335b5b2cdca 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-name-iter-val.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-name-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-name-iter-val.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-name-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: SingleNameBinding with normal value iteration (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elem-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elem-init.js index a3a5fc455cff5101aebcb0e4f997988755159ab6..a48a6a17dd5ad3e7c95b0da5d27c6253d228be4c 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elem-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elem-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elem-iter.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elem-iter.js index d35829005e97856a71aeb1428d79231902888066..3f7aba2e391681bdaf84dd29fdd9c05aed6bf184 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elem-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elem-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elision-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elision-init.js index 82ced4fd9fba9707f076bf7318f0153dfde421e2..dffa7bc867a7a4ad905b9dbd6673d3abae11b453 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elision-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elision-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elision-iter.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elision-iter.js index 76e27d66423c92196c4abac3bbf87db1083d2bab..b040879c677784373f0972f0f36eb06bd25b9e69 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elision-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-elision-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-empty-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-empty-init.js index a32f0d12f0ad1e1980e0e3c9fe4920cf460f0e5f..90dd99c29b7f76b3d8ad4ced6233d0f1ef5bbd14 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-empty-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-empty-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-empty-iter.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-empty-iter.js index 59521542524015dcc27c71528c4d16c30f25ee48..979825ed0ef16f2701b686891cf2e8792c5af3c4 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-empty-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-empty-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-rest-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-rest-init.js index 1c2c909982b3958c59f9a4703863d50bf502a769..fd6d66196adee841b5701c79b9c60ab73196e21e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-rest-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-rest-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-rest-iter.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-rest-iter.js index bee246f414eda4d4db22c9c41b97c92beba48a18..c46731351a5b0e3996e1a5d704cc55ef5d5988a9 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-rest-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-ary-rest-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-exhausted.js index 8c17b68f4154b8da7b29faa92a238ef926522861..d1afd52044d4efefb6b44c7bf5e7fed1615bbb14 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Destructuring initializer with an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,16 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. - 6. If Initializer is present and v is undefined, then + 4. If iteratorRecord.[[done]] is true, let v be undefined. + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-arrow.js index 1977874a42ad62c28a9802e7772b3228c7aa19a6..749d88463a0c5875b1e7128b615e95dc184c2932 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: SingleNameBinding does assign name to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-class.js index d60c465b2bb3d6f39f074a618fbe690fcdecf411..390c3d71cc7ee65ebaf7ce210d85fd44dc3155c8 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-cover.js index 586ee276add74117684e024d71f3df648ace235c..6e786ee30fce1e0a998ff6f480743ad9cc35f771 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-fn.js index bf6f1e2b7cd4eb7973423b25a9d994ea6c7e4eb9..637c55a96123ce386e7dfb3c3a35c8cd167fc566 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-gen.js index 3ca26a31e026eec08c606a324f0e2e00abfc7475..82bddc49fbf67df880e9b9f99e4bbc3116ea3974 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-hole.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-hole.js index b8211c42bf471755a6274e46d4e19b89f682d98f..1dbe43d192aa68f99471f0f6fccb4c9b1992f320 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-hole.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-hole.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-hole.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-hole.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Destructuring initializer with a "hole" (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -36,12 +36,12 @@ info: | [...] 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt - [...] 6. If Initializer is present and v is undefined, then + SingleNameBinding : BindingIdentifier Initializer_opt + [...] 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-skipped.js index bd3ab2b97ba81a5d996162b16f6f4a3d434baae8..80eab158bf7b2d42e9b22c88ff54e282d4983ecc 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,13 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then [...] 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var initCount = 0; function counter() { diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-undef.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-undef.js index 3c2e209c9b6d3c896ca4e877b5b5a88959ec69d4..bf9dd65cf94a31cd65b6f045af174f5f204ad612 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-undef.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-init-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-undef.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-undef.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Destructuring initializer with an undefined value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,15 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-iter-complete.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-iter-complete.js index 3f7ff1017c9a02c5079e9e99f79db3c5e1d274c9..438d8164901d223effbe8a902a67e53ee0ee71fe 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-iter-complete.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-iter-complete.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-complete.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-complete.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: SingleNameBinding when value iteration completes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,19 +37,19 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-iter-done.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-iter-done.js index 96730f7f3d97e8f112931df6aa32ce7ae3f4a4d7..4e26237f8607c5fc62f8e2f90bfb8b1a3e818cae 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-iter-done.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-iter-done.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-done.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-done.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,14 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-iter-val.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-iter-val.js index 0192acef774e28d002e189d883cd1b4a9ba1b5ef..48cfa883a132487c1fd1c4e6a49034f9ef27f6f7 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-iter-val.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-id-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-id-init.js index 17b6913d49935cbca5d9e5e959c86f12052a2469..eb30e258a4e62f9b8cff12ea3728436530d687eb 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-id.js index e495d3ecb77c8dcb69fbd1f1c244b98bf2ddc63f..942bc6df1baf08596c6e7f7412940f9bc681c22e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-prop-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-prop-id-init.js index 7257b001d017a085d3b6ba2292e9c62a85bf7409..1f9b23d541422d8dbaf5235aa273053bfeaf540b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-prop-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-prop-id.js index c19221c92ce9bb90f494dc6f6c09cf3a99796c4e..d7cc7f16a5ec974309c5a26ac8e40f62fa9db340 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elem-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elision-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elision-exhausted.js index 2af965091483e53d4729a25ff8d0223a56dfabaf..3cb9c38207f5d19c4e0aec318f2231c80fa54de3 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elision-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elision-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elision-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Elision accepts exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elision.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elision.js index b6d981909ae054e8fc58e50cfde5b680580d5777..d30e65524aaa972ab51c18ea0c04518c5bdd43ff 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Elision advances iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-empty.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-empty.js index c562e057ac99d97d395c9387e70200d9610ec33f..ccd3bab3035bc3a8e5b18cc9b4ea86c855d616ae 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: No iteration occurs for an "empty" array binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-elem.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-elem.js index 45086a2ec171c823f7d72929b57977f03176700a..cd76ff486a1cec5ec369d3dc2a2c2ea9dd4d5ee6 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-elem.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-elem.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elem.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elem.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Rest element containing an array BindingElementList pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -50,23 +50,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-elision.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-elision.js index 661c0a4c8b03e8dd5d0c29709707551413ad0e43..c04f5c1ede9b3782cfbcc3d323769d68e55bd4b7 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Rest element containing an elision (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-empty.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-empty.js index be4dac13fc6028faf3e11950da97a2280b9ada82..896a7a2e721b25a93cb694504fbb7f36dc613c48 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Rest element containing an "empty" array pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-rest.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-rest.js index 2b44ec30e0c54a679ea944f0da8d761487ab7d73..ee353a253c4f109b435d91973da476e2c28a721a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-rest.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-ary-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-rest.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Rest element containing a rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-id-elision.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-id-elision.js index 7fdcd7119a1c057d73498aa9831a260f486c8c10..1ea937b56022f09a453ea37cd927fa828c2664c2 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-id-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-id-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-id-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-id-exhausted.js index e8417f5ad01caf6b443db1687764597dfa9bec9f..3e66922babe818a9f3ead21e2785c3dcee93cdd4 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-id-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-id-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: RestElement applied to an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-id.js index 0d991672b47a70a8b3762c1d200159a4a226516b..ddad5ca97ffc839fc5124867ae49cc9bbf822ff0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Lone rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-init-ary.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-init-ary.js index 685341687c1425706cfc6dd7f847b70bf1600c8c..82d92099c4c2d82ec742c982af7fa6b6fdb0c24a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-init-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-init-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Reset element (nested array pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-init-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-init-id.js index b4e256e6a78c70db9c27e7201cd2ab40e69e6e38..ef2997351753c599b094851954d46b31718e8870 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-init-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-init-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Reset element (identifier) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-init-obj.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-init-obj.js index 405d946ee3536e61884479676898e812d0939271..eab2400372a85620e6ca0a5fb9ae11225f719e81 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-init-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-init-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Reset element (nested object pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-not-final-ary.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-not-final-ary.js index 2a62d2e5a4733c7d4d6661d9b313e3d039e9c3b9..54a2d9b468f200f5be04e63074c5d38d8e3f8648 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-not-final-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-not-final-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Rest element (array binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-not-final-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-not-final-id.js index fb0fff162d5c0c2329d74b6306d418c5dc9002ef..b87b8bdcc23a9d6518dc46f6e92a20849a543bf5 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-not-final-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-not-final-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Rest element (identifier) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-not-final-obj.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-not-final-obj.js index 3791b544f77ccfc19b2fc26d170f61e76dba7cfe..54bb1d366270ff6a95ecfd8f248f4c6880d6b579 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-not-final-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-not-final-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Rest element (object binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-obj-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-obj-id.js index 993b15abb8018a160e2ca10e3c44e47d6d23b3dd..d89902ee82cfcb02f0ecbcb8ce92430c50c2d3e1 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-obj-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-obj-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-obj-prop-id.js index 028a44af3826d89372c2812cf3c82ea348e71459..cc970bf2cb570dbfce6104db4e4801a9abe1868e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-ary-ptrn-rest-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-empty.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-empty.js index 08320a99e59543f1eb63ca06f302f93191f65396..0875f719ed6c44ff38598acff2f422a209579b86 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: No property access occurs for an "empty" object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-arrow.js index e1598d40e86125f39e3ad7d722c0ca4cbac3ae9d..8b525dca414124264359f6ec6b76f3fdc734f262 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: SingleNameBinding assigns `name` to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-class.js index 137bd77343a9272859a6a795b5362deafe73545c..4fe3a745d532267d1cffba3afe414682df84855a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-cover.js index 484d3f4fe2732a9fcae2f116c1502014e14e846c..f8a69db36c12d70d70d0d7e10261c61d91d48c38 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-fn.js index ce632b77e926a1b7fa4354c17424155e2adfece6..02b7e3c6f1b40d8eeafbba8d39c27ba9dd1635c2 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-gen.js index 575b7a0dfb38a80139d59cd8dbc2ceeb6f4060e2..9d1f48d453f9b437797a4b95122035ab03bb4ff4 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-skipped.js index 3497ef78c99afa7db82c8b4d7663ce4582b49acc..f332e06017649bbbfdf59374a98beea3144e3c3e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-trailing-comma.js index 5ace88ecf7a85f99fb75d47b417bdaa0c30ad191..53717f0e4390d1a2b0df3f44175578c5a3061e68 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-ary-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-ary-init.js index d6c5976d5ecaf155a4bef29cf78827f9c6860379..b403cc55a86832b437d3ecfd77120708bf1c363d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-ary-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-ary-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Object binding pattern with "nested" array binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-ary-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-ary-trailing-comma.js index 1f3e852fbc528057e283a9f507dcf61d18efdee3..a9fa3561351393c6fd8437038fece663398cd865 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-ary-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-ary-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-ary.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-ary.js index 898d44614641ab7e0fdd9d355223d483b6bf49f2..0c7915f1d4cfbb36d35e74c540fdb2cc16a235e3 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Object binding pattern with "nested" array binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id-init-skipped.js index 009100990bdf5f8f461cfc9ad160a4c012a96db7..e54e793be052dc0ac7ac7224cffffefa7dd4bcae 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] 3. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id-init.js index 2d653969916b421fbd0d25749ddf72a1d5d484f5..cf677cf738ad37ce8cd7e8a6ddd2d02ef22a492d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Binding as specified via property name, identifier, and initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id-trailing-comma.js index a6fcec99267d58bc59c1bffe8a894ceb614a096a..65ec3257096fa992237da157ae4d460efa4e7c91 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id.js index 99e56ea37961849c679995c9b6c8eaae816b0fc9..decbac6ac28c92986f5c07e06865cf40c6212695 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Binding as specified via property name and identifier (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-obj-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-obj-init.js index 095118c7617de1978ca4b2aa4feb1c5f1f79d2be..2220694886b8b32263f622ef2c7755f47f48b260 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-obj-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-obj-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Object binding pattern with "nested" object binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-obj.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-obj.js index 404cff1d407cda2b68d5211425c8165618ccd1ef..ad767c38371a9d37810b53fbf493d011f5784aaa 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-prop-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Object binding pattern with "nested" object binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-getter.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-getter.js index f7a85a759091781fafa134d5cdefbfea7735ecd4..4cbc6f46e6cf8fcbc2491eeea6019e1e7701b26d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-getter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-getter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-getter.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-getter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Getter is called when obj is being deconstructed to a rest Object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-nested-obj.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-nested-obj.js index e490e3d192d19b2ef864c1dc20f3d83c618d5d39..8bb992f7c0c8a42968e15d37a5b34d8632b89f54 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-nested-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-nested-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-nested-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-nested-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-obj-nested-rest.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-obj-nested-rest.js index 78bbe16d3e7c3d8434afb2f4c77a229e3186f1da..9282e01d4e51ffc0033d4bd265ede683c4459495 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-obj-nested-rest.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-obj-nested-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-nested-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment and object rest desconstruction is allowed in that case. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-obj-own-property.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-obj-own-property.js index c5089cda6eb14a88ea56fbd8e4253d60494037ad..b287d8119ecf0c472f3c0b07bfc3656d07fc61aa 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-obj-own-property.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-obj-own-property.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-own-property.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-own-property.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Rest object contains just soruce object's own properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-skip-non-enumerable.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-skip-non-enumerable.js index 074bc0f0c3f61ff4e90fa7ca13e0745cfa727631..0c6882f2a6a6f4e549b4b6d79d3c94640ab125f5 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-skip-non-enumerable.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-skip-non-enumerable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-skip-non-enumerable.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Rest object doesn't contain non-enumerable properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-val-obj.js b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-val-obj.js index 09a31e9c45b2286af1de56bf36d19ca69797fedf..f1eb5f5abdfdfe7b3ec1e505ac10e022c96f76fd 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-val-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-async-obj-ptrn-rest-val-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-val-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-const-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-val-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const-async.template /*--- description: Rest object contains just unextracted data (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-init-null.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-init-null.js index 6f1aaf9fec0bf233f900bad3dbd6c8d337f3a549..b202e2f7be926512cb5f0e399163c50353504041 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-init-null.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-init-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-init-null.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-init-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Value specifed for object binding pattern must be object coercible (null) (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,6 +49,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-init-undefined.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-init-undefined.js index 911c21a52370bc7adf4316a3c45c4e8b50282fdb..537d3e655bee8b5000cbfb173170652ccb9e613c 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-init-undefined.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-init-undefined.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-init-undefined.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-init-undefined.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Value specifed for object binding pattern must be object coercible (undefined) (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,6 +49,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-empty.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-empty.js index 056f8c4713676b61f8912de441d95528a41f308b..e85219d9bbf102dac2aa66c8c31406ca8ec260d2 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: No property access occurs for an "empty" object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-get-value-err.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-get-value-err.js index 2e158d68c89ea93103028ce30ca89d6ac6995a5e..6ee0fd4860c8226b18476b3453a4a19272d0bd2e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-get-value-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-get-value-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-get-value-err.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-get-value-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Error thrown when accessing the corresponding property of the value object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 4. Let v be GetV(value, propertyName). @@ -56,6 +56,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-arrow.js index f39cc654af8bbd32f98283d670998b46894dd8a2..f63ed252c930d7f17195dd86af674b72d18df6d7 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: SingleNameBinding assigns `name` to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-class.js index 12387e7f10ed760ce29ae8e44738e6b75c23a5b0..23300bf423b75cb14af2e0aca6b18d07a8d706bd 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-cover.js index 8c8dcfb5a1163209758d26ecc5f429d01d2f7132..903ee6ca540b35d73654e675d99c77259ba13201 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-fn.js index 60753e35b777cb2c7bf12b4bea44c304f96e4029..31b15e2091c616a1ccb0d41d0d3a00210c7d4ff8 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-gen.js index 3c314bfeb0b2e5795282b6112456a42dbb63213b..2f82a8fe1fcaeeb5485e3a1ef85efe86bbbe55d0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-skipped.js index 45bd195da382236822022cd31b727211d556de33..7d6fdeac6f3fd995613483d0cadbb936cbc90df1 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-throws.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-throws.js index 7ce139cb16d084be652dee96732817923ede5286..59cdd4493cfc5983c027b55d3104b7c735ba9a82 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-throws.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Error thrown when evaluating the initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then @@ -56,6 +56,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-unresolvable.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-unresolvable.js index 14839e6f1ca600dd9a66cfd54672425280db9fa3..5e630561aa29f09fb1b33960257c12116e665a78 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,6 +59,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-trailing-comma.js index 2e0c5b739fca9960ab6223b8fead7b3f779da60f..39a4ac9643797c253a6b1cecc7db57fe699c1ba3 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-list-err.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-list-err.js index b1390a8e5239dd1cea7d009d350f8609948d530c..e43b30cba93e8146d6e6dc96478fe71f23320dae 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-list-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-list-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-list-err.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-list-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Binding property list evaluation is interrupted by an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,8 +55,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - - -assert.sameValue(initCount, 0); diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary-init.js index 31e080138f008127c00e3d7caf94b531fc3bc7d5..16089ba9e2b542d47c47affad7e8f452ecd3939a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Object binding pattern with "nested" array binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary-trailing-comma.js index 3fda2d68338ae740c2d40cfe7de76927b27621df..0a8710b8dc72e69f5fad9b75ee1a47cd35701f69 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary-value-null.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary-value-null.js index dd0be9ae3327fa8baeac2b3726a182b32a02f6d3..2911d4cb85705f906ac2a50c10088263a16c42cf 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary-value-null.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary-value-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-value-null.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-value-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Object binding pattern with "nested" array binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,6 +51,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary.js index 2870f17913b2964e1ca5cf8a47dc67b4f2aa3764..12127f395ec896068e079b53027dae1c61d04159 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Object binding pattern with "nested" array binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-eval-err.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-eval-err.js index 05bd8c2f750cd594b8cab07d2efe5f766bd32400..4756fea45529f5580d4e44973f46df0a2f9069b3 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-eval-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-eval-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-eval-err.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-eval-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Evaluation of property name returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -53,6 +53,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-get-value-err.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-get-value-err.js index fe9f3e29fbcb25f3ec29a869b9109cc5b98dd8ce..6ef2f58b4e52f2029a1d6bfbcd49b626defdc0eb 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-get-value-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-get-value-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-get-value-err.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-get-value-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Error thrown when accessing the corresponding property of the value object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. Let v be GetV(value, propertyName). 2. ReturnIfAbrupt(v). @@ -56,8 +56,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - - -assert.sameValue(initEvalCount, 0); diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init-skipped.js index 9bcec7b15687dc2f350a3e326569866dd891b77c..2b6c7a97e948f2bf291ed30715640568f3d5b5bf 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] 3. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init-throws.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init-throws.js index 6b3e5569d4638455714bfecd832349553ad941c0..c742ffb7d23584d4bbeb9b8738de8c10f18268fb 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init-throws.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Error thrown when evaluating the initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,12 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). ---*/ function thrower() { throw new Test262Error(); @@ -56,6 +55,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init-unresolvable.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init-unresolvable.js index 60b8d6f3e2e4b859bc85e3e7000ee23f18218aed..5d5fded7943136de80f545d7972e4def3a06e6b4 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,6 +59,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init.js index e67c67c396b2ecc4afd150af0d990459ba2df7ed..019c7a537614ef46cdacd622932e5b8da5f10dbc 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Binding as specified via property name, identifier, and initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-trailing-comma.js index b69fa747fccd8719310b4d3d25d1e2acb64cb6a2..c68a7116a0f8b47675cda9a0120f12751a6fd365 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id.js index 4f874cf317015a1ed7179aa5410fa6676203a955..e256317b593e9c6093ccd354fa67077ee891a21d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Binding as specified via property name and identifier (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj-init.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj-init.js index ac3097d1ac953446c710d97994ce71deb5ff3687..fa4f9f5ec65e607f4117a9653a75a21e788bc1e2 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-init.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Object binding pattern with "nested" object binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj-value-null.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj-value-null.js index 8d06d6c94c40488da5027b8b2530e48806ffa89b..16a6db29779dd1c4ad5b590fb4d2bf51e410056d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj-value-null.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj-value-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-value-null.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-value-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Object binding pattern with "nested" object binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,6 +51,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj-value-undef.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj-value-undef.js index f255baac2557f5362e89929017770c096eb598a5..12aa1d43bca734239ccdc622c4d705348f09d237 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj-value-undef.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj-value-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-value-undef.case -// - src/dstr-binding/error/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-value-undef.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-const.template /*--- description: Object binding pattern with "nested" object binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,6 +51,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); - diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj.js index a280d6deebfb76320adb41b023731f2ee23d1c26..685afb23118ceb447b316e142fa6b361924f9078 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-prop-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Object binding pattern with "nested" object binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-getter.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-getter.js index ebc5eb16c04a5044fd016fb5ad7d364923cef87a..3285763ffb77c2c05da5c21199303d11be13f8e6 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-getter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-getter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-getter.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-rest-getter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Getter is called when obj is being deconstructed to a rest Object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-nested-obj.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-nested-obj.js index 07004dea4fe46fbcfb40b215013ebe3c0b7397c0..8f8f338c562de7d87389c607ffbb1e6a4d24ff9c 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-nested-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-nested-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-nested-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-rest-nested-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-obj-nested-rest.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-obj-nested-rest.js index b70de9e475392f1d75b5fccb322d74522dad3da0..cefb9ba33c7455f2b960dfe86267556efbde6789 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-obj-nested-rest.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-obj-nested-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-nested-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment and object rest desconstruction is allowed in that case. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-obj-own-property.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-obj-own-property.js index 874d6abd44fc9fd2bfac4dc34004679e12703610..e9ac410a5acd4e974f8849bf841d340a57e47ecb 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-obj-own-property.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-obj-own-property.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-own-property.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-own-property.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Rest object contains just soruce object's own properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-skip-non-enumerable.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-skip-non-enumerable.js index 7d76cf75d925f3daf4aca0fea4e1de857ae83852..fc238c55c6b1d207bef7e80b4f12d0ac25426a36 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-skip-non-enumerable.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-skip-non-enumerable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-rest-skip-non-enumerable.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Rest object doesn't contain non-enumerable properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-val-obj.js b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-val-obj.js index f45b3c2952ac631644b4a757c85748c5a1eb83ac..a43c7411b116b471974084ad2e0b597be78f63e9 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-val-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-rest-val-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-val-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-const.template +// - src/dstr-binding-for-await/obj-ptrn-rest-val-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template /*--- description: Rest object contains just unextracted data (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-init-iter-close.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-init-iter-close.js index 7f2ce824d365aa7e3b96ac17ff4c940d4861cfe1..41d78b107726d8c2ee5c34ba2b26e49c96084490 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-init-iter-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-init-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-close.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-init-iter-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Iterator is closed when not exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: false }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-init-iter-get-err.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-init-iter-get-err.js index b5430dee8c3850d0cf174ff0c25696f0edba285f..4904a738822ecae57faa04a2105d19caad0c5f7f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-init-iter-get-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-init-iter-get-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-get-err.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-init-iter-get-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Abrupt completion returned by GetIterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -39,8 +39,7 @@ info: | BindingPattern : ArrayBindingPattern - 1. Let iterator be GetIterator(value). - 2. ReturnIfAbrupt(iterator). + 1. Let iterator be ? GetIterator(value). ---*/ var iter = {}; @@ -55,5 +54,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-init-iter-no-close.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-init-iter-no-close.js index 24931586abbc5223b249079293c0eae2f76fd935..4b9bff79137b7d63a7b77291929e1e1d956f04da 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-init-iter-no-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-init-iter-no-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-no-close.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-init-iter-no-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Iterator is not closed when exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: true }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-name-iter-val.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-name-iter-val.js index 81a3c72896813e7aaad67df064f9b522c36b6d2d..6da083bfaab16bdb1af2ea6bbf009e098c8f6c0b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-name-iter-val.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-name-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-name-iter-val.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-name-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: SingleNameBinding with normal value iteration (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elem-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elem-init.js index f6f15d1c3e7a16c3e0fd922c7f8e44653a124c4b..a2983cd8bad4ec39401bae0ed0283cec88eb5233 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elem-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elem-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elem-iter.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elem-iter.js index 637607a06c1923d193f295f48acb8111c87a3430..73cbc8a9bb7966807ff362f085592a6fd47d2b26 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elem-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elem-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elision-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elision-init.js index 66de3a27dfdb5c62e7bd0b3df5f6e471484dd971..bfef9fd3e5c51ef71cd2e2604d8f1925c29ec761 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elision-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elision-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elision-iter.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elision-iter.js index 88bdb7b93374c0c68e16f4c3e954c24def222724..251680f04ee49a776d9d60ca662c9605807dc1a4 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elision-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-elision-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-empty-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-empty-init.js index d8b0a43ac765d9883f06c201afb6311c01000ced..1ebbc56325090dab80db99da5449bf0a6ba6e2db 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-empty-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-empty-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-empty-iter.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-empty-iter.js index da355666af2b2adc7c98214def2fd303309f334c..ad5c805e461560473494fa7231229a0a55a869db 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-empty-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-empty-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-rest-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-rest-init.js index a46b20a9efee8e9406cd3eb1e1d00f99adab1bc5..dfbe84b1e446a9d4d4e3f8a76e11c76d5398901f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-rest-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-rest-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-rest-iter.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-rest-iter.js index 3f8d5d837a4dab7e89468b95d0aa68ca0c2234a5..1d87383393dd0645c1ae7d37f502fddb4257ed39 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-rest-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-rest-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-val-null.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-val-null.js index 58eef04c7f5a525acdac26ea9c6cce9b969f479d..1436e6646967c5f05eb7edd549ed37ec48c33f31 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-val-null.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-ary-val-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-val-null.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-val-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Nested array destructuring with a null value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -51,8 +51,7 @@ info: | BindingPattern : ArrayBindingPattern - 1. Let iterator be GetIterator(value). - 2. ReturnIfAbrupt(iterator). + 1. Let iterator be ? GetIterator(value). ---*/ async function * gen() { @@ -62,5 +61,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-exhausted.js index 4608fe25c926f647e8adb72ec58bcee838543c1f..20c5e52a7de3fab1fa0049fcfa1d5a83e6ea83a4 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Destructuring initializer with an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,16 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. - 6. If Initializer is present and v is undefined, then + 4. If iteratorRecord.[[done]] is true, let v be undefined. + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-arrow.js index eea3724be2f29061d362594c360a6372486f2fd0..cddbb8d5b1dd035aa4f33c44d5bd07acff8b0bea 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: SingleNameBinding does assign name to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-class.js index 296fe71fbc749b58bd2fea8ea537e44217f55121..3b3988fb1e54113a2b9c2b699f80e0d4d76a286d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-cover.js index c155f58a9d870aae91c1ca4f26b520a74b78a4e0..86b8c6b2c55bd9eb3dd1b4fc86d5d99abf4ad17f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-fn.js index b9048334ea1d6b2cfc75c5e5de08be33400d81d5..8e04c770a0dccdbd850fbbeaff6a85f26c3368d3 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-gen.js index 33b9451bbc7847148f4661147c8c9305e1c9e1d7..937825c24b5315151040e66f440553b4d1b65e4a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-hole.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-hole.js index a02b27a0d62958d870b4dff537e62f3cf69d8262..e4c86e2f48e30af4fc8b8a140d5775782672bf26 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-hole.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-hole.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-hole.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-hole.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Destructuring initializer with a "hole" (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -36,12 +36,12 @@ info: | [...] 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt - [...] 6. If Initializer is present and v is undefined, then + SingleNameBinding : BindingIdentifier Initializer_opt + [...] 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-skipped.js index 26fa7ba8691994fc486db532b4f9acdd8674e521..cdd537836ff2b2b3abfcdf132c3259022bbae6dc 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,13 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then [...] 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var initCount = 0; function counter() { diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-throws.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-throws.js index 9d186db3cc8eae5f2a2c24628431384ae4a15471..751d1bf2fefae94590bb531ff7319c1cf4a4eb82 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-throws.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Destructuring initializer returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,12 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). ---*/ async function * gen() { @@ -53,5 +52,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-undef.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-undef.js index 816f0cce02305a9c820341371f7ce9a658444932..4732b66d7279ffb3a38bbc7c3147dd89df7791e0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-undef.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-undef.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-undef.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Destructuring initializer with an undefined value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,15 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-unresolvable.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-unresolvable.js index ad09d560f4794ad269bdffca4f3cb48ba51065a7..33aca3f6cde34df926f5209e0df924ed2ed9e98a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,5 +59,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-complete.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-complete.js index 9a98dcaf3c8528db3e6e4a309526930aa7f82852..a9862f43977d84a12c1f1b4492886cfd6a73f33b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-complete.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-complete.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-complete.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-complete.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: SingleNameBinding when value iteration completes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,19 +37,19 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-done.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-done.js index 4b3f91a4cc8d5ffa2b4387dfbd2e7243cd52e95f..d6d5d83bb8cefe055bfe28727624a1761720367a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-done.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-done.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-done.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-done.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,14 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-step-err.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-step-err.js index 54920fc28034d78b7692229ff5ed8fae45700021..e6a31a611c0b8bf86286fb14e66671ce1ca8fd61 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-step-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-step-err.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Error forwarding when IteratorStep returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). @@ -48,7 +48,7 @@ info: | var g = {}; g[Symbol.iterator] = function() { return { - next: function() { + next() { throw new Test262Error(); } }; @@ -61,5 +61,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-val-err.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-val-err.js index f953460b6e98f6a7b4959807ff2cadc52c1aeeb4..e96774cfc7955906e9d007a6837fbb5fb457686b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-val-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-val-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val-err.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Error forwarding when IteratorValue returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). @@ -59,7 +59,7 @@ var poisonedValue = Object.defineProperty({}, 'value', { var g = {}; g[Symbol.iterator] = function() { return { - next: function() { + next() { return poisonedValue; } }; @@ -72,5 +72,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-val.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-val.js index 854f9a38fa122dbf8ccba0ba69327bbfae72563e..5aca6af1e037438e22e2c61f5d278c36723473c0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-val.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-id-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-id-init.js index 25f87afe59bf0c296449fa1163ea7bc5b00c6a08..445f09924b6a593bc05436ea5e6cc31a521a09d1 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-id.js index 030fc748c54532c7872660aeb9a4f64c173f50dc..51a799259775ce1e634525e7306c5c3fd4b997ae 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-prop-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-prop-id-init.js index 9ea084e18dd5d0883909cd1c4cc75868f0b12c1c..6b5b30c2912068bae257f85b251fdc6d9cbe3828 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-prop-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-prop-id.js index d7ada5cd1d75d00d0956159a39b4ab381a2097a5..8af127470d644831ef8c91e08b9880de9a39aa78 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-val-null.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-val-null.js index 99e52283e100ca4a44956f285d29a6a1c4aa57f5..dcc862666676f4047c9a321f5dd5419ffe07ac96 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-val-null.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-val-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-val-null.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-val-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Nested object destructuring with a null value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -62,5 +62,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-val-undef.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-val-undef.js index b3d2ecbd6734ea12985cd16b92c58aebfa65b2d9..e865f9692b489bae7e2035749557419580a8fa4d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-val-undef.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elem-obj-val-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-val-undef.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-val-undef.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Nested object destructuring with a value of `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -62,5 +62,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision-exhausted.js index 438cbf18ba793af1521a3e2e13df88f7d22c0128..27aca3cdf88fbe364091984002e8d81f070aeea6 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elision-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Elision accepts exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision-iter-close.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision-iter-close.js index bec872509ad13b22431f76604adf040e9732194f..58306e76b82c0b5a7c4d3818e5079577d69bd947 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision-iter-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-iter-close.case -// - src/dstr-binding/iter-close/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elision-iter-close.case +// - src/dstr-binding-for-await/iter-close/for-await-of-async-gen-let.template /*--- description: The iterator is properly consumed by the destructuring pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision-step-err.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision-step-err.js index ef7ee3686127b4dd5c6fb181ac1315a453290de9..5a7ce09722b352eeaefaeb605993cc1284ce6d1f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision-step-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-step-err.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elision-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Elision advances iterator and forwards abrupt completions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -54,7 +54,7 @@ info: | ---*/ var following = 0; -var iter =function* () { +var iter = function* () { throw new Test262Error(); following += 1; }(); @@ -66,8 +66,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + assert.sameValue(following, 0, "iterator is properly closed"); + }) .then($DONE, $DONE); - -iter.next(); -assert.sameValue(following, 0, 'Iterator was properly closed.'); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision.js index b5e4bc53c6f39d26a56e88f59a5d276075d6ee10..1a70969e184046807b01182a43c5292b240b9fb5 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Elision advances iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-empty.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-empty.js index 9e5f2785ae5fe5a87899a0f3368e87c9af702fbb..04e9a70cb81544b88237fe57b567f1ba375827ef 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: No iteration occurs for an "empty" array binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-elem.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-elem.js index ae7d7560d037a22f4bb855d18d4b843426d3a920..70bc7fd158c4a2b9a4d2c8bae89d89213157c40d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-elem.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-elem.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elem.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elem.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Rest element containing an array BindingElementList pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -50,23 +50,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-elision.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-elision.js index 810feed77d8f6c5ff0508d98c830d6458b52de52..03d0aa50ea20bf26bf2f6ec25c28b81cc6bb22b1 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Rest element containing an elision (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-empty.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-empty.js index 193c6a765d8719c12f6b02b7d00041a1b5ac1077..c8205348be3e2bbd45052d73a56df9a51ff41073 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Rest element containing an "empty" array pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-rest.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-rest.js index 070106dd6ca41c76be230b8bac62466f9ea5d2df..7fbd9c56ae92550aaa2df5a009be50ec3c327fd2 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-rest.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-ary-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-rest.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Rest element containing a rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-elision-next-err.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-elision-next-err.js index be6b5fd3caaf9e12652c96d4368cc30242c0af72..4f89b55a153b237ace38d6ec578cdf7b9d82e036 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-elision-next-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-elision-next-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision-next-err.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision-next-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,5 +55,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-elision.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-elision.js index f82bd2af952dc35c34556563db82a6773a4dd620..199e53651f123637d1761a178a273e381c74bddd 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-exhausted.js index bb405c2f7dac8141cc9f04ac21c762f18f51415e..8a1fc26d39ef002f54ba573430a88fae911d3c26 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: RestElement applied to an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-iter-close.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-iter-close.js index ba369dde4ccadae2a6d4d6f299454f3b03789755..8cd3f727f852af918d52d347728eb06009b6eec0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-iter-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-close.case -// - src/dstr-binding/iter-close/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-close.case +// - src/dstr-binding-for-await/iter-close/for-await-of-async-gen-let.template /*--- description: The iterator is properly consumed by the destructuring pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-iter-step-err.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-iter-step-err.js index 1c4fa51cd7fe136dfcc1b057b4497dddb7472661..9be4234a2a43b702aa95de3dd5e5004bdd64477a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-iter-step-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-iter-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-step-err.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Error forwarding when IteratorStep returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -62,9 +62,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - -iter.next(); -assert.sameValue(first, 1); -assert.sameValue(second, 0, 'Iterator is closed following abrupt completion.'); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-iter-val-err.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-iter-val-err.js index 634306e0c8951de909edebfbde14774711d8c185..40a3cecf207220cd79a7f19eb92a7193a13822b0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-iter-val-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id-iter-val-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-val-err.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-val-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Error forwarding when IteratorValue returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,7 +55,7 @@ var poisonedValue = Object.defineProperty({}, 'value', { var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return poisonedValue; } }; @@ -68,5 +68,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id.js index 1561b01d39dc55a427caf43d8ceb79aabb12ae5c..1a6526df1f5e0c53849245b8867850ae21cd1de6 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Lone rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-init-ary.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-init-ary.js index 0c2c9de2101560da9d5ab0d223b249ec5032f221..b1c6a70c57dd3fb6d4a352433182c606b9b3a840 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-init-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-init-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Reset element (nested array pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-init-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-init-id.js index 0a7410e64380fde0772242e010fe60e2af113cdc..79bf21ef7e33c6ded410f80b0719483fcf30160d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-init-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-init-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Reset element (identifier) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-init-obj.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-init-obj.js index e25751802f6e75eaf0548d96e3e8913510b866b8..9563a8d111b8ff01b03fbff7dd47d6321ac0da2f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-init-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-init-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Reset element (nested object pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-not-final-ary.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-not-final-ary.js index acc348f312aeec72c6e536e50f75357640d22d3b..a7a37017d982ec8b8aaed149eda097e222f40116 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-not-final-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-not-final-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Rest element (array binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-not-final-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-not-final-id.js index 5598b78327495c0f5a60433f56a45a732f1ea737..e17ad0b1f268b74015eb5b881c7906c3e38431a7 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-not-final-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-not-final-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Rest element (identifier) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-not-final-obj.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-not-final-obj.js index a883cce35ece37fafe55a96ad547ca6d6f092e61..dcc9284da1e619b8012725332dd7bc29465767a8 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-not-final-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-not-final-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Rest element (object binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-obj-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-obj-id.js index e0511618b4e1f1fa9c70728f79576587b966568e..c0b02bec7d1cb095719e97b33d6fdb6982f0017c 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-obj-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-obj-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-obj-prop-id.js index 688d5a531430c5ce912865318fd0c2035dfbca4f..0bc1867c3497e6e8f621f115f2ac6011975cb4e6 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-ary-ptrn-rest-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-init-iter-close.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-init-iter-close.js index 105b085dc1e540a271de66a0279e91e7e1f92287..fa5d8addbc550e28c009d13e19b3f202ce44fd19 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-init-iter-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-init-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-close.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-init-iter-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Iterator is closed when not exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: false }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-init-iter-no-close.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-init-iter-no-close.js index ef51abc67d5572e26bfa432afb430a4148deaf7d..1c5819f3bda74807196734360e98f4a9c497b5f3 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-init-iter-no-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-init-iter-no-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-no-close.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-init-iter-no-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Iterator is not closed when exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: true }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-name-iter-val.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-name-iter-val.js index 588330ddb68470505a4261ae6626156e607ca836..e631def198b1167e4719840b00c59e0530eed6e1 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-name-iter-val.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-name-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-name-iter-val.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-name-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: SingleNameBinding with normal value iteration (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elem-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elem-init.js index 01d9eb38e14420fbe75878c3026c78be1f636853..018a5bfaee7f5c57676a8ec559ffffab809f2d3f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elem-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elem-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elem-iter.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elem-iter.js index 3cd0e902b056367d0274a3cae08a64a1a8cd0c67..84dead268d0286ea819c30a059dd5314632193dd 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elem-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elem-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elision-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elision-init.js index afe206ba1252ea1524898105f8f07d1e20d44405..2f19d481fce586b972ddefe230cf4f780d9eaff8 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elision-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elision-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elision-iter.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elision-iter.js index 647aa4cd0404183885cdd2d1b93d19c3e2044cc5..64ad8a47d3eed25be78e594f27c5e3d200ec7f0a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elision-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-elision-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-empty-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-empty-init.js index d83c4312acac5f0345bfb4b68667b6d081620103..16a9eb3a7250041df79668425fca99d73c0f76d9 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-empty-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-empty-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-empty-iter.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-empty-iter.js index 74d126e4f7aed71fc08d9f1c44a23dbf042d5a37..f3ef73fc7f5011de44425f0248cc9981972a9fd7 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-empty-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-empty-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-rest-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-rest-init.js index 7cbf95219c78b0923c70c4dbbfe8b406463a15d7..de78f1d03919129bb7bf618cbcfb6e0f9da90429 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-rest-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-rest-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-rest-iter.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-rest-iter.js index 790e24cc710b5439118426b09e5e55d02f2bec64..333d749626c3718ab32c320787682f2aa57b36cb 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-rest-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-ary-rest-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-exhausted.js index c3842c1cdfc6dda0ee99fcaf49ad04723412f11a..7b68ed272b25827a18564a94bc4a1b2c945d71f1 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Destructuring initializer with an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,16 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. - 6. If Initializer is present and v is undefined, then + 4. If iteratorRecord.[[done]] is true, let v be undefined. + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-arrow.js index 3ab8334626b56ff72e02bae402886f234ec63173..cee17b6c88f17d9c7e441ebec857bb7964752ad3 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: SingleNameBinding does assign name to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-class.js index e24437e7a3b289ecf96b9f8509b9a472be559882..5d4190cb16e8b32b24552431d012de7d4b784096 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-cover.js index a78c9d193d15b102c6d33b6871c5679d4a9c6bf4..9c482705033b7760ba40479687b955ac5fb0b0aa 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-fn.js index 0603be91c0a28098954b2ca2768752a90a8287d2..408c6cea8df7663980f43df31a0d904c001855e4 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-gen.js index f9e825dc5254f23edd63c2754394b66f0b0031ae..6e319e753d746ea4e471742d12217693b336b0ca 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-hole.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-hole.js index a9d94cb0b248ce051a12c421813eb72d7cac6707..46484a884bf4d8f61859870f498e42e6cb89320f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-hole.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-hole.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-hole.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-hole.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Destructuring initializer with a "hole" (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -36,12 +36,12 @@ info: | [...] 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt - [...] 6. If Initializer is present and v is undefined, then + SingleNameBinding : BindingIdentifier Initializer_opt + [...] 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-skipped.js index 2c2093fa510870426eb3ac8138982733efee983b..b1acd7a9e4a0574d0f4fee04029f87418306096b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,13 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then [...] 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var initCount = 0; function counter() { diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-undef.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-undef.js index 3b9a6f341044203549e9e001019965b7be9356bc..bdf416115e972ff449efc93e31952d775b333d3b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-undef.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-init-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-undef.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-undef.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Destructuring initializer with an undefined value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,15 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-iter-complete.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-iter-complete.js index 122e1c167290c858e72c37fa019b61c8a2e6f9e6..24f782ea76eba1c6eb1315386bcbcdfd40cdb24a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-iter-complete.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-iter-complete.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-complete.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-complete.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: SingleNameBinding when value iteration completes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,19 +37,19 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-iter-done.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-iter-done.js index a9fb3f0abbd1fd828239805c4b06a8c0949d8032..e44eacafb43314c4c2992452db1709e2f6e2dc3b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-iter-done.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-iter-done.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-done.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-done.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,14 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-iter-val.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-iter-val.js index d31c94dcb280e9264e39c7ec29fc60b5c2e49766..ae98f3ab0cc6764773752ef71c405a5a8a7dea33 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-iter-val.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-id-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-id-init.js index 06f12fa124a680bb58a7e644948b58372d856408..8a9b9b72b0793bdd9856da950ac321782c08231b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-id.js index 557a31fd688b58ced934a4da9abd397859d85d07..6f9d6f1e9240e362b553c819470dfbd55307a2d8 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-prop-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-prop-id-init.js index e9847832603edbccf7f956b4d41094ec6ff762ff..46b9a5c750be98a2e788c906627d8e0a06186a56 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-prop-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-prop-id.js index 71506bbe6ac1ad8a60e15be1fcc6a71953c102ce..91479693c9abc3b2f6f0044696e86a1f828ece2e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elem-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elision-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elision-exhausted.js index 7edd76f6e5220d328e46f8b4b96a7631c1bb6c36..97f6953fd584a3851b352fd5f4ca41ada15a8e09 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elision-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elision-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elision-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Elision accepts exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elision.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elision.js index 2871051b4f7a0951367ce15cdabf4b06df3c22b7..250175f26457e4a42385e70523ad0b60e955f25c 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Elision advances iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-empty.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-empty.js index 9de73e04e5d747216adad25ded88ff1808d0f6dc..1e649dce017f8a9e4e357aab390c7657b590da12 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: No iteration occurs for an "empty" array binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-elem.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-elem.js index ccb2c1f1a5b03fb271c44b56ab6f03b4ab6000bd..3f6e5760b8dc8074b62d9e8c98bc3c4e73e79686 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-elem.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-elem.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elem.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elem.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Rest element containing an array BindingElementList pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -50,23 +50,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-elision.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-elision.js index df112ef2cbee6c667e47d051249036653768cc0e..a8d48faa8268e071a2aa25dcc3cf9552754f3b87 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Rest element containing an elision (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-empty.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-empty.js index f39b0cdc0c2c8637755b50725b4ee230e6f5b5da..1f0450dc0cf2c13974dcb5ac0876a6d94da069a9 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Rest element containing an "empty" array pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-rest.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-rest.js index f5e808c78423978b81b177068688b715cf9eef42..c4035df6c522436df8215f9e162ecf82fe0ed771 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-rest.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-ary-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-rest.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Rest element containing a rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-id-elision.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-id-elision.js index 491081feec580d7086e1a752336ef766a68212e2..09584fcb8138ed6ce79f5e9bf93297f1ab683386 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-id-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-id-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-id-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-id-exhausted.js index b267cda1d07a03dd1e35cd8d2d5ffc91ae8d59fd..9437daf71a1f6754022f3b4e4fd0212f31413943 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-id-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-id-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: RestElement applied to an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-id.js index 07fe2e036127ab60cf516644bb429f8b120fa3de..cd48b905a45b26b875e81557861dd6ad9d02d66b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Lone rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-init-ary.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-init-ary.js index 63237664fc0fb491bf2612940b28c0f3cccf1935..43baa92fabe01f8ec0a6029684af3f38a00e988f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-init-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-init-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Reset element (nested array pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-init-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-init-id.js index ebdba4e66e47ec659e22245e28754a7a39ef875d..a771249321f727c85fb088b44b942caa154aca78 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-init-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-init-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Reset element (identifier) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-init-obj.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-init-obj.js index df2ea0c01549401ce619e4a12ebd25e003c2a564..5c9e29d8f63557bf65e0e2966f8084286681c6bd 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-init-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-init-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Reset element (nested object pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-not-final-ary.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-not-final-ary.js index b06ced0e100b94b7fa7a7a29ef2ae61f61ffcafa..38b1394534cf7f08f8464ca531ff3fa9b6534bd2 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-not-final-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-not-final-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Rest element (array binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-not-final-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-not-final-id.js index 46d33ca9524cff35a8e833f028222676a30cb5c5..1f96f5147b2bc43b9ce6f075d8e5e36bc7416a44 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-not-final-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-not-final-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Rest element (identifier) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-not-final-obj.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-not-final-obj.js index 6e1ac77707b70f3334f154236a60bdca4793ba4d..0b0a47369d8d52b20befcbb4b09a0d160966a9f0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-not-final-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-not-final-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Rest element (object binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-obj-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-obj-id.js index ec4d6b3723fb936be76d64236df32c78b1494884..43938aacfc391b5ea170c13f299b6f7650f814f7 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-obj-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-obj-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-obj-prop-id.js index f465a8f8d472e96efb36e42decb859a20643dfab..17207788c3e33b28f8af9baa2356466681531302 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-ary-ptrn-rest-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-empty.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-empty.js index 5c04bbf9d598476d751095fc4679e4ad77ca0f7d..5d4ba5dbde7451e4a094589347f86592a7660406 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: No property access occurs for an "empty" object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-arrow.js index 8e95c3d7a1690ebffb13d16631e70fa349d4d7f0..0b08285d9f0481190403b2ef44476f7293096391 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: SingleNameBinding assigns `name` to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-class.js index d74ecb698443fe4d0667800a4316e32367e641c7..7a14a27d8f3383309f24c0f8d806fce1b5906eab 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-cover.js index bfd6096848df5e842d9e125456bcc60f11f9f3df..1a636e1f20eeb154278d872e3a851ef5c2312d32 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-fn.js index e613678b4d82f003b6b57b30a87e777dd6ac89a4..1622b8d740d998c7f30066900f455bae2d8026ea 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-gen.js index f6d474be3493ae9a9a32ddef57293a2cd9e25580..d8a9002f1537e19f14a8dc155d7a928ec02e6e03 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-skipped.js index aebc133d72b84abb2f52eedce612cbfd8646ec31..f5527a1aa73604507faa5abacd2097f78cfd2f11 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-trailing-comma.js index e2554571c9c5f008f2c1f51515c0b660723c1367..6a0d3475021e54a9d30ae8a4bf4be9e6384da616 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-ary-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-ary-init.js index 8645bf1bdb271460d82d20ae915658758e302f48..35c0d004e07a7375937ea967857ba067271b6fe3 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-ary-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-ary-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Object binding pattern with "nested" array binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-ary-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-ary-trailing-comma.js index 2b771ad15f3aaf4f223442cc761007c00924e351..7b57c3a0823f2bcffb588e4aee45b119793100c9 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-ary-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-ary-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-ary.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-ary.js index 048d1135f7a88390df3f25c87efeef8775f135dd..5ced064edc3f887a2a01516ad1f89866101bacb6 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Object binding pattern with "nested" array binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id-init-skipped.js index 76ffc91b03da377ec564104c69dd0d490b41eed8..1ef8f8b010be9e12da1b5925d9b528b8141faf7f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] 3. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id-init.js index ab25220a3d583230e5e1ffd16bd79235235a1f28..2b81755e772059532e6ac781f856d1423174ad2e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Binding as specified via property name, identifier, and initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id-trailing-comma.js index 42942794bb13cb3eeb992285f034d5d803aa469f..9ea81dda0e3acc6d746e144f784eab49fd95f86d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id.js index b30295d801b40585e849b92638a61a09bc556511..87b0587362d4b5748ec741e0263d30d139ddf979 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Binding as specified via property name and identifier (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-obj-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-obj-init.js index 66c05e0ce29496d51effc200d34d7f378515f3ed..f4ef8b0af0b038bf3ef41bbdf79b4968cfe10332 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-obj-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-obj-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Object binding pattern with "nested" object binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-obj.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-obj.js index 431b5aa01a9204baff88ed3846be2b8aa533ddff..927807d33f0a3693f247aa81fa2fc9788d5d39dd 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-prop-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Object binding pattern with "nested" object binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-getter.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-getter.js index 7bc9307bb976b60ff39d5d385bdbdd7460f88261..497a95c8ed9e1e6724d781ff9e16683c116738fc 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-getter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-getter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-getter.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-getter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Getter is called when obj is being deconstructed to a rest Object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-nested-obj.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-nested-obj.js index 03f9d10606440d1ef6cfb3a5bf789074217943e4..d2539313d5195e92a876f6f71cf9d5b338b81fea 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-nested-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-nested-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-nested-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-nested-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-obj-nested-rest.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-obj-nested-rest.js index 0853db839f82b0989a7a3a8d7abaad6e928cbd2d..c0f58913f271fced7426348dc50fc63e9401da92 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-obj-nested-rest.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-obj-nested-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-nested-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment and object rest desconstruction is allowed in that case. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-obj-own-property.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-obj-own-property.js index 77e6c826786a627d15e50352e5c5d89964e2c8a7..0b54ea246bdfa1e60eca68d3e904103578ce1d3c 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-obj-own-property.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-obj-own-property.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-own-property.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-own-property.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Rest object contains just soruce object's own properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-skip-non-enumerable.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-skip-non-enumerable.js index ead8aa0eb3339cbc1814f96119e4b0462f8c9912..03c817114e71c45d9f5971f9c3f9ffb1db0f8308 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-skip-non-enumerable.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-skip-non-enumerable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-skip-non-enumerable.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Rest object doesn't contain non-enumerable properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-val-obj.js b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-val-obj.js index 1d941ef790f6126551705edcbc6d2ae55b2a731d..72ffe96188adfb791c6e9ff41ca8dbb46f006c93 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-val-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-async-obj-ptrn-rest-val-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-val-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-let-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-val-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let-async.template /*--- description: Rest object contains just unextracted data (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-init-null.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-init-null.js index 34dde4ad402ffb8023d8d3f5aca14222d157d343..ebeeadc8393dc1495342bf2c55fde480f8c63510 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-init-null.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-init-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-init-null.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-init-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Value specifed for object binding pattern must be object coercible (null) (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,5 +49,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-init-undefined.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-init-undefined.js index fdac18e5cf96fa395dcebee9bd1d04330a9bff8e..5965925c62c5566e4a00bb0421855781473ef0ac 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-init-undefined.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-init-undefined.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-init-undefined.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-init-undefined.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Value specifed for object binding pattern must be object coercible (undefined) (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,5 +49,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-empty.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-empty.js index 999c394f8a8d4b85bbe8c74686cc189aa24f6775..3db9f48622176801629cf6d44e308a6b72006958 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: No property access occurs for an "empty" object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-get-value-err.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-get-value-err.js index c3a436c71ab65cae830b9fadb3c437800034baef..b5352aff5ac4a4622e8f7989a83b03d9a2d13f65 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-get-value-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-get-value-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-get-value-err.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-get-value-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Error thrown when accessing the corresponding property of the value object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 4. Let v be GetV(value, propertyName). @@ -56,5 +56,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-arrow.js index dc4f8f4354bc740ffcae6a02144587a94d0654d6..630b98d2d7e10e4bd168b52592ff8da0897023d0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: SingleNameBinding assigns `name` to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-class.js index ea6be8e5e3785fb0cda20f75521cccd1a0a8c05c..bcd2faf4911324fb19c8376d9e252a82261939c1 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-cover.js index 41dd6d9d48362f6d1faea27e1c243253fd75528f..fe011cd94a111db89f61ea15375895b0ba0be16d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-fn.js index 357b0eb1f0f37905aedd78fdac0cc6bb4664a927..9c69331efc95bad5a764727ff50fefd4cde371f8 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-gen.js index 5d6d2e8f60e4e291de4a4f11b238c80c73e0d028..428770a3156964af6eb0cb530649da033942ac13 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-skipped.js index b2f558310c0d60a35ec38c0c940f3cc987358e56..9099555ac3bc22e52a92bc521974c2dfdc050011 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-throws.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-throws.js index c4c4b667ca44e0d8cc8fbea5a666a71ec972566b..2d1f3ec8010a7abc27b66a6355a4531003f82764 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-throws.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Error thrown when evaluating the initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then @@ -56,5 +56,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-unresolvable.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-unresolvable.js index f8144bc17435d64cfd2f5b64659e817bdc98ace2..60ee1891514bd2e3d1e79a213cc24ad1df96d84e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,5 +59,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-trailing-comma.js index 96911f79dd9b2330bd020b62dab15a99a760e9c9..d2f2dee7a893bb4fb7cdbd60006d004157358a5b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-list-err.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-list-err.js index bb9a55a527ccc1c8b2ad69861b1c0efaf5f84175..845ccdd651616f2cbaefe5345d1a3fbe6b642582 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-list-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-list-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-list-err.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-list-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Binding property list evaluation is interrupted by an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,7 +55,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - -assert.sameValue(initCount, 0); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary-init.js index fbb7ae3d5c38b436e9c634e65e454f8bf64e9b19..51a77613ca23331bc19e3786ed84c628efc0ffe8 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Object binding pattern with "nested" array binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary-trailing-comma.js index ee83b7150afd70db1b40f5b385a3b0a91097db5c..431e660ff56f73fb79e7ea7a537427704f2274cf 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary-value-null.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary-value-null.js index 36873e5b13a00947cde618fa58894c9152e8e5bc..204d2efda2bf139d9fa93300276931a3bea4c073 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary-value-null.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary-value-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-value-null.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-value-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Object binding pattern with "nested" array binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,5 +51,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary.js index bf66995da863b9a33c0d74bfc2e2894eb3abe3ba..ec3d06a354557b61c7a0ccd0afa54e67abdb7c28 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Object binding pattern with "nested" array binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-eval-err.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-eval-err.js index 11b33ff65f453c9a23a9e36741330dadda5f2b55..c49ffa8fc7535a670b56005b84c11eee9c45fe21 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-eval-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-eval-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-eval-err.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-eval-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Evaluation of property name returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -53,5 +53,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-get-value-err.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-get-value-err.js index 7ee5d99b6d71b440b7430af7c761cb0af81bf07d..8da6bffca7a42104718d3cd2941e225f01167b4e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-get-value-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-get-value-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-get-value-err.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-get-value-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Error thrown when accessing the corresponding property of the value object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. Let v be GetV(value, propertyName). 2. ReturnIfAbrupt(v). @@ -56,7 +56,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - -assert.sameValue(initEvalCount, 0); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init-skipped.js index 79caadb22e3f60b1c8083ef6d6076bd691a1e5d1..58dc504d0017175979982fe29f3d7bc712d6eca7 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] 3. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init-throws.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init-throws.js index 7888a773d623ee6a1cb9dd0a76c5e83ae10adf40..1585043af8cc310189d252b9af23a407f29fa477 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init-throws.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Error thrown when evaluating the initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,12 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). ---*/ function thrower() { throw new Test262Error(); @@ -56,5 +55,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init-unresolvable.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init-unresolvable.js index 2bcbb2f3abfa5b30e874dd65ee0f00cdf06e5852..f50edf3e098aea7914e6d996199d77efda29b3ff 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,5 +59,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init.js index 45c7ae923987af3d16f6e4a3d1939b23e447dd25..a7c72aeb69e9f2e6ed890f9985270ba7101f7c74 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Binding as specified via property name, identifier, and initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-trailing-comma.js index e2fa16843cd03a67cdea8425ec2fe8db76e9d733..2379be6d4ef7a645ed13e9657cd2fb3f9c721fee 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id.js index 962877e2f3066640088015d9b744a03f3c9972e9..bf7c9cc4b83ba3595850f260bbd8a33707a957ba 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Binding as specified via property name and identifier (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj-init.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj-init.js index aa4744af8a556c0b9848365451c706c6e639fdbb..1f59a1115b9e8e6f09453fe9b2d3b96fbc5c5c58 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-init.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Object binding pattern with "nested" object binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj-value-null.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj-value-null.js index ee2d6245d2ea7ed1a221745b3d3716a36e436a7b..b93ed1deb7cbf179db79ded2a87acd4072df2797 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj-value-null.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj-value-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-value-null.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-value-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Object binding pattern with "nested" object binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,5 +51,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj-value-undef.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj-value-undef.js index 8cf6ea33ae03e2d5786442e4d8231ff8dfec84f3..00fd8bf1b8fd75ea4e080bf21ce21006db1f35d3 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj-value-undef.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj-value-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-value-undef.case -// - src/dstr-binding/error/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-value-undef.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-let.template /*--- description: Object binding pattern with "nested" object binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,5 +51,10 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj.js index 4f1c4ce538681b1e600cfebd7728c152da9b25e6..3a8ed9ee6a4eaf9cdb2d47ba5d10894571118c9e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-prop-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Object binding pattern with "nested" object binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-getter.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-getter.js index f29ee0d310dd5599df040b06319ddfe819a39b01..106588bfe8818f61d58ba4ee45b8613d67daccb4 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-getter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-getter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-getter.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-rest-getter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Getter is called when obj is being deconstructed to a rest Object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-nested-obj.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-nested-obj.js index 8dad546a992bbd36fce05f7f6ce3ba4cc8d35045..368976556313fcedd787278e56bc50d662f4ea04 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-nested-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-nested-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-nested-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-rest-nested-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-obj-nested-rest.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-obj-nested-rest.js index a8a3db625cdc7b0ee2afac2c843b34869154b641..06b449bd3e815e66d65509ececb104c5389a2875 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-obj-nested-rest.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-obj-nested-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-nested-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment and object rest desconstruction is allowed in that case. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-obj-own-property.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-obj-own-property.js index 5bdee94c5e4d009d608f5446339b729df5d9a3f4..8c451fc5a7592caeeb6b0385ea449d0cc1dc674e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-obj-own-property.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-obj-own-property.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-own-property.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-own-property.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Rest object contains just soruce object's own properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-skip-non-enumerable.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-skip-non-enumerable.js index c46f6a267ff3e02b08cac21377a0a0cd361367e0..92dd4d8c1ce587c209aabe7cce24379d1b1e22f8 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-skip-non-enumerable.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-skip-non-enumerable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-rest-skip-non-enumerable.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Rest object doesn't contain non-enumerable properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-val-obj.js b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-val-obj.js index 12e5e48d4536ad4742fc8fc4b4a71cd2ec60ead9..486a915ac5120d219db66d4ca80811b751a9b752 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-val-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-let-obj-ptrn-rest-val-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-val-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-let.template +// - src/dstr-binding-for-await/obj-ptrn-rest-val-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: Rest object contains just unextracted data (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-init-iter-close.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-init-iter-close.js index 8b3887938d57b29d457260b33f8e96e3c257aeb3..f422b11b8eefe12cd0d8f13a677422363d9d900a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-init-iter-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-init-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-close.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-init-iter-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Iterator is closed when not exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -46,10 +46,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: false }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-init-iter-get-err.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-init-iter-get-err.js index 53f66b170e18d3459479bb547fb70e6e5576844f..2113f66e21c8f3f17cf80ae7061400df1e3326ec 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-init-iter-get-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-init-iter-get-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-get-err.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-init-iter-get-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Abrupt completion returned by GetIterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -39,8 +39,7 @@ info: | BindingPattern : ArrayBindingPattern - 1. Let iterator be GetIterator(value). - 2. ReturnIfAbrupt(iterator). + 1. Let iterator be ? GetIterator(value). ---*/ var iter = {}; @@ -55,6 +54,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-init-iter-no-close.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-init-iter-no-close.js index b75e766d1c9721e32af974842c1016c4545ca10e..419c0a51f3ea526b26f0518c3161d1f67f1d38f0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-init-iter-no-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-init-iter-no-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-no-close.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-init-iter-no-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Iterator is not closed when exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -46,10 +46,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: true }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-name-iter-val.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-name-iter-val.js index 7c7e4070e915eaeea29951fdc6e2b4cbf9ee772d..10781c9c6688f5c402ebc1f6aa87931cef77937b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-name-iter-val.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-name-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-name-iter-val.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-name-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: SingleNameBinding with normal value iteration (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,23 +34,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elem-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elem-init.js index cb6526005376cc645a5ab4b1a28c60fa00b1ce5d..a941c110472792ea703ad0862b5ec774b2165677 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elem-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elem-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elem-iter.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elem-iter.js index ee93351f39cfbfcabd4e4cfe6a07d83670c420b5..6bcad390bee4db9c9cd43addfa340b14aedd9dc1 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elem-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elem-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elision-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elision-init.js index 468f3ae51d0cc4bee9374550ed182c2450b98b8d..8a56edc671add6708f32a6ea8252f1ec12056f32 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elision-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elision-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elision-iter.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elision-iter.js index d9075265e4a8771a9dfbe155218121caec75a06a..420e6a360c1878dc97b7b6cfda0b3da4848c980a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elision-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-elision-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-empty-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-empty-init.js index 656c29412abe5e1e81fc711a2a5aaaa8ce9d7a39..b579f354297622b2ed9b3b0baf31d4f2c1642c49 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-empty-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-empty-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-empty-iter.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-empty-iter.js index 18267654c666b32295a3dedeb6922df7bca8bfea..2692f01fc5141604204c4d2cca3a570d5eb0a6e4 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-empty-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-empty-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-rest-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-rest-init.js index 860188e6ceb7b30e0b6c35324abf22a84c6cc7a3..187f1aeb36265c53fe22be9e4e5fff9e9e185a87 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-rest-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-rest-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-rest-iter.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-rest-iter.js index 2f2cd45d65131d32c720ef815cdd68c27ef36a7e..bd259c156b03538b6aa8cb2ea2c3e6828240b16d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-rest-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-rest-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-val-null.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-val-null.js index 0676e7df694ebb3b4362fd7fd8b936c13c5db5c9..5f2386b970f132f403d07a6c57e610b9a00edac0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-val-null.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-val-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-val-null.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-val-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Nested array destructuring with a null value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -51,8 +51,7 @@ info: | BindingPattern : ArrayBindingPattern - 1. Let iterator be GetIterator(value). - 2. ReturnIfAbrupt(iterator). + 1. Let iterator be ? GetIterator(value). ---*/ async function * gen() { @@ -62,6 +61,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-exhausted.js index 0aca3d4caaacb166e5038f43e85e9c497f10a8fc..7860f017dd6decde685ac46c8800c6b9ec9dce5a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Destructuring initializer with an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,16 +34,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. - 6. If Initializer is present and v is undefined, then + 4. If iteratorRecord.[[done]] is true, let v be undefined. + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-arrow.js index 724965a17e3918e509c20c859590ea599e86c6df..76ffafb2c9b05289e99d4fa06c94dce6b265584a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: SingleNameBinding does assign name to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,17 +34,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-class.js index 12887a6e9770b6f29737a5301dbd56378c79e836..48f7f8a9386f970d0ec50602b4d97859daace5eb 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,17 +34,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-cover.js index ac67c794ce7f5c14f17ae112f428e962c3884ca6..6cbf484d7172968ee9fed08785271f80689ba41f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,17 +34,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-fn.js index 4a468f0aa21082b99a7209c9b50077fbf40a1e57..58d8eb56fb7e5b94d09ddca125876c9033064eb7 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,17 +34,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-gen.js index c5d34a6b68171db7a49bb4e87c9ce403d3c5ae58..7d904485e4920bea410fcc72a7ae21322a0a9118 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,17 +34,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-hole.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-hole.js index d6d5a7e2d15a0218a91f1b6ef225669d2a5a6665..823911204e80c2e3817c629d14b25be3da06b0a3 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-hole.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-hole.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-hole.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-hole.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Destructuring initializer with a "hole" (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -33,12 +33,12 @@ info: | [...] 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt - [...] 6. If Initializer is present and v is undefined, then + SingleNameBinding : BindingIdentifier Initializer_opt + [...] 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-skipped.js index 20260c640781d7e1f144f715bda4c9ce1d70afe6..0b6770d1d7590e3f12dd5886088402bbafff8946 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,13 +34,13 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then [...] 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var initCount = 0; function counter() { diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-throws.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-throws.js index e7c78ecaa59281b8dbf0d6fac7c2b498dd18048c..230f32f0e176c59cafbf99ab752cbbd24eda944d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-throws.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Destructuring initializer returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,12 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). ---*/ async function * gen() { @@ -53,6 +52,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-undef.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-undef.js index c0cab837b627578d112da4fd9f38aaed9e7907e1..7ce243c032087efab2c536725dc7be29a72bb64f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-undef.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-undef.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-undef.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Destructuring initializer with an undefined value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,15 +34,15 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-unresolvable.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-unresolvable.js index 174882ee590c40ef9efcd0c3095e2e6dcc77ea07..d9042814daf1f1d4ad061272e6c313b931ba0a94 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,6 +59,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-complete.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-complete.js index ba79edf715f7440a6f2392a26a2462cd3565213b..63ac7d05ff29fa30332e567aa65f76f37b017fca 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-complete.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-complete.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-complete.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-complete.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: SingleNameBinding when value iteration completes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,19 +34,19 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-done.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-done.js index 371554bfc40d4f3da8e0f74cb419919b3f74df21..7554df592b317bf42e3c9df70410aa8549ab752e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-done.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-done.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-done.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-done.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,14 +34,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-step-err.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-step-err.js index 9c0461c2e824678137d759eeb2438bb8627e343b..e0088da1c4c19c8c72180576c15b89075555420e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-step-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-step-err.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Error forwarding when IteratorStep returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). @@ -48,7 +48,7 @@ info: | var g = {}; g[Symbol.iterator] = function() { return { - next: function() { + next() { throw new Test262Error(); } }; @@ -61,6 +61,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-val-err.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-val-err.js index 01dfb67cfdbb5ac5609c8bf037d001cf5fc927f2..aa6078690696c7b8e578f38eab2ae16e04962228 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-val-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-val-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val-err.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Error forwarding when IteratorValue returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). @@ -59,7 +59,7 @@ var poisonedValue = Object.defineProperty({}, 'value', { var g = {}; g[Symbol.iterator] = function() { return { - next: function() { + next() { return poisonedValue; } }; @@ -72,6 +72,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-val.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-val.js index 3eb794c7b1474080d1f30637f316447a54d8a2e4..5deb10c628d99e643777bab033a4c9cc812b8afb 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-val.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-id-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,23 +34,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-id-init.js index 525d7d247a01ed858e53df0e81fbff6220417156..373d4c9ada8df7743a00160aba73d1bf31b76d1d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-id.js index a38669b2de50970671b7e79c4f4d46a470b8f3eb..6793eb93c62fdaa357a42435238be9f5ad1b81c6 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-prop-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-prop-id-init.js index 06278958b1fdf25e5d413f87c0b8ba781cfd6593..3a6151a5c6c7dde4caae9652b372d478604c4b44 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-prop-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-prop-id.js index 53761b17244faa505021be7c1e76b3aea85c750c..f86645950033045901e078b08f8964c03cc5353a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-val-null.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-val-null.js index f35a0f6936357d0eaae0f2e3acbb2c2c3256556e..d8d05a8c7d68d13ac33f4b591bbbfd25f74a9cbf 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-val-null.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-val-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-val-null.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-val-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Nested object destructuring with a null value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -62,6 +62,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-val-undef.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-val-undef.js index 81ba2fd0fcc6af13344fa3361702244b84be1193..d90d72d5f110b45deb8bcf2b9fb238a3794b1153 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-val-undef.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-obj-val-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-val-undef.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-val-undef.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Nested object destructuring with a value of `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then [...] @@ -62,6 +62,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision-exhausted.js index 51f9c7c64e6729a75201d505b4eac3b74568aab5..2913f372be21cbe87d87488346211668e8e3fcf9 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elision-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Elision accepts exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision-iter-close.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision-iter-close.js index c73d7f3024aa4012e0d8b6fbd277574e7deca0c3..71f956e2eb4c95bc4fbd80bd0630192e3648471b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision-iter-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-iter-close.case -// - src/dstr-binding/iter-close/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elision-iter-close.case +// - src/dstr-binding-for-await/iter-close/for-await-of-async-gen-var.template /*--- description: The iterator is properly consumed by the destructuring pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision-step-err.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision-step-err.js index e3853f3bd23ab692345c145f5f8587ddca5adfb0..3a97a7e5d9366153300875336debddddab11a2f7 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision-step-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-step-err.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elision-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Elision advances iterator and forwards abrupt completions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -54,7 +54,7 @@ info: | ---*/ var following = 0; -var iter =function* () { +var iter = function* () { throw new Test262Error(); following += 1; }(); @@ -66,9 +66,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + assert.sameValue(following, 0, "iterator is properly closed"); + }) .then($DONE, $DONE); - -iter.next(); -assert.sameValue(following, 0, 'Iterator was properly closed.'); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision.js index 62927c2c4562602ee87c8ac54630640ce7c5fa49..b85a18d08117cf0a8469d57b6b526aa2c65b904f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Elision advances iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-empty.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-empty.js index 0af3dc0534ab2420024d3703680c27ee5df74dc5..3b027851339d203f996b79fa8f0d5ba9bd0503c4 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: No iteration occurs for an "empty" array binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-elem.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-elem.js index a61804c91bf4fce5202bade1837b1438e250b6ce..9da29fb556cd59e43f73f19adc9131c13b0dc5b9 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-elem.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-elem.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elem.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elem.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Rest element containing an array BindingElementList pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -47,23 +47,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-elision.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-elision.js index 5fd82a2a3b037eea994b0bea32c9fdff283d36aa..97e70ce83ef06698595970a6fc269628df65d29d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Rest element containing an elision (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-empty.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-empty.js index e087d0c08353e910e8e40eaa45030d755b269b0d..5f4333d716216d8c36d17b4eb4dadc2bc681e910 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Rest element containing an "empty" array pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-rest.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-rest.js index 6c1965e63bbad9b5b99b1da1b29001b70ed42e60..6329a9e5f5aafc461ca9048a326974d62e461db1 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-rest.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-ary-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-rest.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Rest element containing a rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-elision-next-err.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-elision-next-err.js index 63a3b6137f1af620652db6c59aeebc5ae4d6b97d..6b2db24e623b093b143d9759d86c396d68585101 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-elision-next-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-elision-next-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision-next-err.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision-next-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,6 +55,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-elision.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-elision.js index 56a55c3308172461b2be5926d35d27c3e1a43258..bfcaeccccd1195db7ba11866544d331dc1450bab 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-exhausted.js index deeb8a22268ac58f65f00cb9e6ba2050bf781a29..69d7ace52a4a19dde8b56b89c33dab4c9ece4400 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: RestElement applied to an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-iter-close.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-iter-close.js index 7366db129e1d5e8d2b447fe419987b5642a69786..ff17a597076ea0f4cec21aa402159c5fce2e2f5c 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-iter-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-close.case -// - src/dstr-binding/iter-close/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-close.case +// - src/dstr-binding-for-await/iter-close/for-await-of-async-gen-var.template /*--- description: The iterator is properly consumed by the destructuring pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-iter-step-err.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-iter-step-err.js index 3469341af921398fcaeab727fc3d3372a46c82f6..587ed3a78a771acf9a7a482e88848b77fd37f941 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-iter-step-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-iter-step-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-step-err.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-step-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Error forwarding when IteratorStep returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -62,10 +62,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - -iter.next(); -assert.sameValue(first, 1); -assert.sameValue(second, 0, 'Iterator is closed following abrupt completion.'); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-iter-val-err.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-iter-val-err.js index c50287ea69825649a149ef5dc7d6d00126f176e0..fa2d70147890974682724c9345343e694e1180b5 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-iter-val-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-iter-val-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-iter-val-err.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-val-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Error forwarding when IteratorValue returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,7 +55,7 @@ var poisonedValue = Object.defineProperty({}, 'value', { var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return poisonedValue; } }; @@ -68,6 +68,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id.js index 3d6e936f79c73bf0a8d670fcd3fcd88688a766f5..2331fd6ab49ffb2258db2a9ef4474403661ff42c 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Lone rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-init-ary.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-init-ary.js index 7cab299377083e077f594447625e0852a6676fd2..a463b99bd946ef4f8c0ff123fa2643f39d8bf92c 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-init-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-init-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Reset element (nested array pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-init-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-init-id.js index 5ea538a3698a23be2214ffcd9361171e4c8099fc..b785029bf68d1672de4067efba280f625cf035bb 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-init-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-init-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Reset element (identifier) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-init-obj.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-init-obj.js index 1d84266848e7f1479665bb7e69f305b9524757b2..d16ac1786d160e254c0bc07a79e3a4dba7c5c7e1 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-init-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-init-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Reset element (nested object pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-not-final-ary.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-not-final-ary.js index bb1079e379d19e58692290ba1c6f2319a35a71f7..39cdef4c90ceba2778255df066ff3ff4d0b99a6f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-not-final-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-not-final-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Rest element (array binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-not-final-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-not-final-id.js index b37e2fe0adbd5e05d3a4dc41337f4ed8f3373dfb..18d6a649d570f9dadab5ce805a3963445a2caf1a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-not-final-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-not-final-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Rest element (identifier) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-not-final-obj.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-not-final-obj.js index 5b4397969aa2b2b2cfd8b06219bdad17927f1951..933966fced97249e0f5b41654c7ba2cbb7b60056 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-not-final-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-not-final-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Rest element (object binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-obj-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-obj-id.js index 81c12aa93a15803580265f5dad986374e4091186..1a41de34225db12df00f48a55bf68a6fa40fb2be 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-obj-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-obj-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-obj-prop-id.js index 3a4cf1536096bdb4897278b1aba4836f555ff2ff..585e6c2be574a1c6b39043f55fa2244c7374b2c8 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-init-iter-close.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-init-iter-close.js index 03d9db542e0badcba28db906bb5946cf5ddd1447..2aa372b764c68e87cc4e9bd8a9ebfda0e1fbf9e8 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-init-iter-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-init-iter-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-close.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-init-iter-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Iterator is closed when not exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: false }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-init-iter-no-close.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-init-iter-no-close.js index 7c0d60c32b0c4d077297e7f0bf87a81eee259cb4..0a2d27c127b0b4b04cd0a5587186253c4d4337cb 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-init-iter-no-close.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-init-iter-no-close.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-init-iter-no-close.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-init-iter-no-close.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Iterator is not closed when exhausted by pattern evaluation (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,10 +49,10 @@ var doneCallCount = 0; var iter = {}; iter[Symbol.iterator] = function() { return { - next: function() { + next() { return { value: null, done: true }; }, - return: function() { + return() { doneCallCount += 1; return {}; } diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-name-iter-val.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-name-iter-val.js index 87178374660a1705a4571a1c64498d0e044e6681..e04ef78c167792e7e15e719df7ec71e5ed57c111 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-name-iter-val.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-name-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-name-iter-val.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-name-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: SingleNameBinding with normal value iteration (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elem-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elem-init.js index e8d497685a27dfc022de2656aa11c13f1353eb1b..fde8b01e43271c5aac7740f39a202203e1aba01e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elem-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elem-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elem-iter.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elem-iter.js index 9443e4ed2769331edcb11d553e4c1f87b87a5516..75d890c1f6dfac55e1056e8398e14bd436d53b0f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elem-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elem-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elem-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elem-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elision-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elision-init.js index 54f8f49ab73e63ae5182c1827d9c67abfd4aec0a..4da03bcf09f9fc58fb73f7b83acf16fc668b8d4c 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elision-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elision-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elision-iter.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elision-iter.js index 100d6d787076a5db0178ed438d52326c2766696d..fcfe3c7312c3fbbd2c7aedb1448fa5c8c489438f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elision-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-elision-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-elision-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-empty-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-empty-init.js index 9f78cf5ce927e744b9ca1a1b7ff9f4218253694e..6f5f9ff77eb83c8432413ef727f0c3a32c94516b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-empty-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-empty-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-empty-iter.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-empty-iter.js index 64fcc5a287651c00941079c552bf842fe97221af..cfb7e5213044731ed4e33c65224b2b2799bbaf27 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-empty-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-empty-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-empty-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-empty-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-rest-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-rest-init.js index 70014c0dcb374c067c43b8eec02daae19161a1cd..f416d7fe290e96115b9343c6a87dde5d30373b96 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-rest-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-rest-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: BindingElement with array binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-rest-iter.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-rest-iter.js index 9dbb33316ef4d847752e663829c3fad83c6f9556..19eb582f79ae17f392cc6cde1af6b6fa9308db5d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-rest-iter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-ary-rest-iter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-ary-rest-iter.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-iter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt 1. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-exhausted.js index 4227bcf652741b953a603d3edeebbce05a6f718d..5c86c381f296deefc730716f846733e1e5f30739 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Destructuring initializer with an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,16 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. - 6. If Initializer is present and v is undefined, then + 4. If iteratorRecord.[[done]] is true, let v be undefined. + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-arrow.js index 03fa6532299caf3a0d4d8a536c4d6dd08da76c0d..379753693fa5c2a14273f4f4da6f309a4c5a03ff 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: SingleNameBinding does assign name to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-class.js index 52b93a0248cf82eef07b84b9af662c921da40f28..ce7f5eb6df41ee249b99cb87c1d08bf08c3626a7 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-cover.js index 8d42170b6e00f69381ea4b7f8af357685e94f156..8510324d2f81bdd38238917ed1fa510d0503177f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-fn.js index 99ce34b7f0727cc3b5f6f262cad71358221fe609..8bfe91fc8efaadfc871c38e03fc665edef440956 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-gen.js index 9fb58367d92f88992f3532e0d0ad0507df82001d..e252e7b779fd4854b80f6d0c34887517573aeb19 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,17 +37,16 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). - d. If IsAnonymousFunctionDefinition(Initializer) is true, then + b. Set v to ? GetValue(defaultValue). + c. If IsAnonymousFunctionDefinition(Initializer) is true, then [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-hole.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-hole.js index 49b02c4669cb28776c40ecb6df94f0a8918d0542..b2f4cf2fcecdb705e2103b85718b007cff90fac3 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-hole.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-hole.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-hole.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-hole.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Destructuring initializer with a "hole" (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -36,12 +36,12 @@ info: | [...] 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt - [...] 6. If Initializer is present and v is undefined, then + SingleNameBinding : BindingIdentifier Initializer_opt + [...] 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-skipped.js index 9cdaaf662e24ecd6c13f848dd7882048d1ac7ecd..002797c004df5f3286c9060cd3d02bc3fe4b06e0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,13 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then [...] 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var initCount = 0; function counter() { diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-undef.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-undef.js index eb3553930df30043da23d209809ca58a7ed9f3d4..3151096b9c0c78673f28d290d2dc09bd8c90afaf 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-undef.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-init-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-init-undef.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-init-undef.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Destructuring initializer with an undefined value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,15 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. b. Let v be GetValue(defaultValue). [...] - 7. If environment is undefined, return PutValue(lhs, v). - 8. Return InitializeReferencedBinding(lhs, v). + 6. If environment is undefined, return PutValue(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-iter-complete.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-iter-complete.js index 870d1683d44e2f4a0210905839b726de35e992ca..c4f117daedf52802876baa9ec53dac32b0e94701 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-iter-complete.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-iter-complete.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-complete.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-complete.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: SingleNameBinding when value iteration completes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,19 +37,19 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-iter-done.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-iter-done.js index 8cf1f20d6004635e340118a4fb4c6f44487f4378..5e9771f978266cd7fe0b81849991fd13d72333fe 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-iter-done.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-iter-done.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-done.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-done.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,14 +37,14 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then [...] - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-iter-val.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-iter-val.js index 563786d6b5454d6f49f48327a5be0df4e4bb030b..737df81d9f8f940139b199c4feb7b86a94247387 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-iter-val.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-id-iter-val.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-id-iter-val.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-id-iter-val.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: SingleNameBinding when value iteration was completed previously (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,23 +37,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-id-init.js index 5023e2bf27ec11b6d6013b8cc969b62ec032d77f..952480afa3286483e6ba050fded8628ebbeaab73 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-id.js index 003b341be02e660deafd25e464b8c844c3d7c03c..a373236f1a9145fcdb8a56066593c678b3f85db4 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-prop-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-prop-id-init.js index 3a0c85c2f8751210502132d141627f9c9f79a20c..09081347a058c0b32de134cae31981f3e25040ca 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-prop-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: BindingElement with object binding pattern and initializer is used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-prop-id.js index c192aa63c34c19e6e90ddd82b163d53c8bcbe1a5..eb79271ef7826fcb2c7ee16ab967ec2d4e6c94b3 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elem-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elem-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elem-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: BindingElement with object binding pattern and initializer is not used (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - BindingElement : BindingPatternInitializer opt + BindingElement : BindingPattern Initializer_opt [...] 2. If iteratorRecord.[[done]] is true, let v be undefined. diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elision-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elision-exhausted.js index 16ae92a4b6c005e19b098c85018e43955ae6d2d4..1dea1435ffe0875b84ff434444361dd72b7d600a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elision-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elision-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elision-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Elision accepts exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elision.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elision.js index 8a1d796ca453ff7921533d34ac623937ad9f2f52..02cc149bec19c8abb1b51ae244d685e53a35c93b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Elision advances iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-empty.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-empty.js index 793cdc441de5a7cb79a2b9c12aa01506cf2a10e7..6392596f6637b4140df5249b4dfcf9171b7f7712 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: No iteration occurs for an "empty" array binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-elem.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-elem.js index 75116da7c174a875c4bfe2791498096588ecbb85..18bcd690f7685e7224775336e18e34a1cfaec5d9 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-elem.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-elem.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elem.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elem.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Rest element containing an array BindingElementList pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -50,23 +50,22 @@ info: | 13.3.3.6 Runtime Semantics: IteratorBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 4. If iteratorRecord.[[done]] is false, then + 3. If iteratorRecord.[[done]] is false, then a. Let next be IteratorStep(iteratorRecord.[[iterator]]). b. If next is an abrupt completion, set iteratorRecord.[[done]] to true. c. ReturnIfAbrupt(next). d. If next is false, set iteratorRecord.[[done]] to true. e. Else, - [...] i. Let v be IteratorValue(next). ii. If v is an abrupt completion, set iteratorRecord.[[done]] to true. iii. ReturnIfAbrupt(v). - 5. If iteratorRecord.[[done]] is true, let v be undefined. + 4. If iteratorRecord.[[done]] is true, let v be undefined. [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-elision.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-elision.js index db5607c2d6f23c5e7999961808be076ca2fd12d2..da8a87178ed21ecac03fd92b06af9dcc13c0d0a6 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Rest element containing an elision (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-empty.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-empty.js index e1ecf8d8ec380eb2d7865b655dd0e6b4f46598f2..c74569288328f0f51517b5e322d8ecc1029de266 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Rest element containing an "empty" array pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-rest.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-rest.js index 76df2f222cc43922d7caf898cae81e8d5566517b..91329a4f995b09726346460de14537677624b083 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-rest.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-ary-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-ary-rest.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-ary-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Rest element containing a rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-id-elision.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-id-elision.js index d341b096a5740f78f43b836c0b07f364c6c5c27c..f5959adbc853fa0c2632b9a7e2e518adad990adf 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-id-elision.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-id-elision.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-elision.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-elision.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Rest element following elision elements (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-id-exhausted.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-id-exhausted.js index d6a9d18ee00fb86c706516f3642b83e5069b61a3..4f04aeba7c3dd12a08c20c093e867b20f134a13d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-id-exhausted.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-id-exhausted.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id-exhausted.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id-exhausted.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: RestElement applied to an exhausted iterator (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-id.js index f9d74bf06e72271b713e779c964d6d333aa06f7e..4d38a6c5a6991f5eae34e2ab7dc73b4fe049ec5e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Lone rest element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-init-ary.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-init-ary.js index e30e423fb96d53784170f0abf6ab9fd081346cf8..f00c5c9662b9116ee5190294e3210736c59656f6 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-init-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-init-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Reset element (nested array pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-init-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-init-id.js index 7d90f0336467ca948d7eb55f8f14fc4eadc4c87b..389477477e7aaf24830b758aebb36d52a1245fc1 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-init-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-init-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Reset element (identifier) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-init-obj.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-init-obj.js index df323d0a8fcf3f024327a1894661874312ffb515..967658ac1adfc8cbdf7c9283998f56fc09ed6a31 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-init-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-init-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-init-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Reset element (nested object pattern) does not support initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-not-final-ary.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-not-final-ary.js index 5b8668b12fc7d82ce06fb7db615418cba569f123..7c43ad3edd291b8eeec506c530a1f208c3053757 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-not-final-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-not-final-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Rest element (array binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-not-final-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-not-final-id.js index c2aec63548e98ef1a83d75eb8bf022d98711c1ff..efe610f4f019b29f0e957d974e81e6c93801fab2 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-not-final-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-not-final-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Rest element (identifier) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-not-final-obj.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-not-final-obj.js index 3a095e909c5684843837e2b5fc26e47433d34116..61678299d001adcc1aee89bfc4b3a64454f56491 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-not-final-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-not-final-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-not-final-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Rest element (object binding pattern) may not be followed by any element (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-obj-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-obj-id.js index ab1dc5f5a3bd2d8a98d983bcf8f8763e734a6c79..372007da45a7ed1cc7ee2f6f0dc87c570e6d9bb6 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-obj-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-obj-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-obj-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-obj-prop-id.js index aef73a7468c8db7316fef233614a21313bbc2119..0a8d3eb772f7014b1ddcf445aacce456d16ca141 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-obj-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-ary-ptrn-rest-obj-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/ary-ptrn-rest-obj-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/ary-ptrn-rest-obj-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Rest element containing an object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-empty.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-empty.js index ba538f7776ae7c69abfecb602a9a30d134dc296d..3c0f9fa06db373d98c6110699518d078fb014b14 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: No property access occurs for an "empty" object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-arrow.js index 9ef53e8836245f2286abd987fddd59cd45f84907..41e160fe8511adf71171977e483c6bc449b7f350 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: SingleNameBinding assigns `name` to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-class.js index ba481e7c383297cb7ee69e7429bb73bf3e73a36b..25ab0c5710f57f397d88d196c053fff3c8d1f81a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-cover.js index 36d310ab1b3421c5a70418d5bed10b738a538869..fbba7807e55d9785e982b190f1f47418a0afac39 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-fn.js index 8f12ee8edf3ce1a8cf8543ec21d1d6b1f0dcbc9a..c16cb1c16673bb09f91b716c730d2f17bbffaa1a 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-gen.js index f3a9bd8545a46d0125532aad327fd9af08fc67c7..83ce4bb01860582f46637444a34f3ddd2b24ac5f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-skipped.js index 27676005370e7306f05ed99cf4226f458b6b4bf7..1294967c10640cc238ed9e1efa970faccc1c5c60 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-trailing-comma.js index 8a8a604609e99d84ac76c372e5d614151c0c69cb..0b92b3d44e56288fcc4d39891031d178278ee4d2 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-ary-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-ary-init.js index d43318b9f9b8c13dadde6886d86589c6abe3a661..43bd7e1996f2822190aab130df9147d439d2242d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-ary-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-ary-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Object binding pattern with "nested" array binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-ary-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-ary-trailing-comma.js index a32d543f92b41e58ed5b8aa815e174d3fe06e123..70f5f4afd80a11a145405ce69d0839f96c23ba1c 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-ary-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-ary-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-ary.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-ary.js index b741c3e4325acfed8d9d0531c19010e78d0bb8c0..e941fa576de87410f3e368034d440b72cb4b4a09 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Object binding pattern with "nested" array binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id-init-skipped.js index fd7832b9a6e54dd9bac173f873a0e25d5afaf378..fdf32b910d69a252ae1a29c3a941c05df3037e66 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] 3. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id-init.js index 608374835c609aeecfa4ca413f3cfb3e3dfce5d7..076d56218075ab78a994247267a0ced07adce045 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Binding as specified via property name, identifier, and initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id-trailing-comma.js index 90e557ab3d36bb9f0b93f64a6ed5bcc7c2acf751..3eb7fad1960fd3dcc9b50ef6687d37f0e28b2353 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id.js index 90fc74e89e5348fd50d52f152b26728dc18e2d64..94550d916f6b3b530107ad1523cbe45b5b869ddb 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Binding as specified via property name and identifier (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,10 +37,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-obj-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-obj-init.js index 3330515154f55f09e49724ad39e09f9230ba6533..1f58176f181829c127645ab4dc0ee0fdd8f6bcd8 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-obj-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-obj-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Object binding pattern with "nested" object binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -38,10 +38,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-obj.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-obj.js index b4b5d99369aaca87e9dd04ea86dfc6a4dc4ce4fe..3e8ced4dce95ab1f206e055da22b921ebeb78fbf 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-prop-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Object binding pattern with "nested" object binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-getter.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-getter.js index 5eeb41d48a90b9ccd8d2eca17146fa0716da253f..c0a8ee6b43fbecd9f4a566190b9ee02aa57390fc 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-getter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-getter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-getter.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-getter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Getter is called when obj is being deconstructed to a rest Object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-nested-obj.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-nested-obj.js index cd9062e9051f19a86af2f867ab06dc4fbe023c8c..4c31804ef73b9abf332e4ba356468ebbb61373e9 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-nested-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-nested-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-nested-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-nested-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-obj-nested-rest.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-obj-nested-rest.js index b81c71e52a6e2072bc692b544991f65494c2fd2f..02f50138f34aadee10eb5098a3f6d159f5958b38 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-obj-nested-rest.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-obj-nested-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-nested-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment and object rest desconstruction is allowed in that case. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-obj-own-property.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-obj-own-property.js index db8d2a4b4d87044cfdf25514aff06ab046ff158d..f80efb1d2cfbbe8b8a8498509e9045ad5ce75d1c 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-obj-own-property.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-obj-own-property.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-own-property.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-own-property.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Rest object contains just soruce object's own properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-skip-non-enumerable.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-skip-non-enumerable.js index 0f5545826c52c270a97a15fd2d18173de52b37bb..2126cab5dfcc6737fc8941152356cfcfb8c61a01 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-skip-non-enumerable.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-skip-non-enumerable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-skip-non-enumerable.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Rest object doesn't contain non-enumerable properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-val-obj.js b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-val-obj.js index 52dcba15fe5839e97d70bc96821ed6de0d42b356..3de3cfe6ca286073996eac2b130aeb65035f48b9 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-val-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-async-obj-ptrn-rest-val-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-val-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-var-async.template +// - src/dstr-binding-for-await/obj-ptrn-rest-val-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var-async.template /*--- description: Rest object contains just unextracted data (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-init-null.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-init-null.js index fc7ba6fd7b638426877799817b22ca4556d71a21..5c794a76043cf8c54382d337b1410f54b43ffe04 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-init-null.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-init-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-init-null.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-init-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Value specifed for object binding pattern must be object coercible (null) (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,6 +49,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-init-undefined.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-init-undefined.js index 6dbb142f45b1d32a6b5aa7a8962ccc407e6bdc66..a4bd48d925c56781637bab8deefe5a23e6419a5b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-init-undefined.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-init-undefined.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-init-undefined.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-init-undefined.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Value specifed for object binding pattern must be object coercible (undefined) (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -49,6 +49,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-empty.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-empty.js index 734deb8799d14db8d18ac3deeea6f9d1dcca9519..1e1bcc42b3ae6aa05002f1fe38bc3c2051019e9b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-empty.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-empty.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-empty.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-empty.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: No property access occurs for an "empty" object binding pattern (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-get-value-err.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-get-value-err.js index 78a5187a4ee9897d974dca98cf0669c969d960e1..a3239d9828c7af3de269904b274d8d566a1369fb 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-get-value-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-get-value-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-get-value-err.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-get-value-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Error thrown when accessing the corresponding property of the value object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 4. Let v be GetV(value, propertyName). @@ -56,6 +56,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-arrow.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-arrow.js index 723823a93fb91fde1b9d3d0752b5d1a4f4a64505..28c7558763f4145500e3815a1aa5f14d016c5f66 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-arrow.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-arrow.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-arrow.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-arrow.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: SingleNameBinding assigns `name` to arrow functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-class.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-class.js index 31161d033672098708bafbe98a2aecf95f6034d5..cfd531f9156cd4b861d693213c1209d6be737f19 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-class.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-class.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-class.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-class.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-cover.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-cover.js index 5b0895b4ac6ffb1c27dd0e79968eeb23bc82d9ad..fd5f5edb65561071baf7b689966f019d63b10391 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-cover.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-cover.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-cover.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-cover.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-fn.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-fn.js index 05e666a397a44931f967c6249b7e29eadaaf6e9a..f7e37d0dd449901c70e3038666e2ecbc29ae84d0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-fn.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-fn.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-fn.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-fn.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-gen.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-gen.js index e6e5e31a0252ac1265de1bbe13346b441e7a5df9..429f03b34b2f64d24fa2c33d26fb859ae890ed6b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-gen.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-fn-name-gen.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-fn-name-gen.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-gen.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-skipped.js index 03c23e552770847c1518dbcd3328819d7969e4d0..fde660042898169c86c3b27bc3e2d7b29a21b88c 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-throws.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-throws.js index be7c673a1f9a72e24d4604a9d077317ed6a1766f..e1af8aa4ac4235648dce2c9655e71b0ea0eb2438 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-throws.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Error thrown when evaluating the initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] 6. If Initializer is present and v is undefined, then @@ -56,6 +56,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-unresolvable.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-unresolvable.js index 5d3f986cffc6840e1685def4edab4b56bc3ad12c..bf120e726cff311e1eab900295ab9411e82e2f3d 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 6. If Initializer is present and v is undefined, then + 5. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,6 +59,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-trailing-comma.js index 855262f33303d66c303f6c8650a87bd7e781bc1f..fe2b5efac887ba4268ee88ff62aa36913d37cbf5 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-list-err.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-list-err.js index c47cc288c02e2db2857a7b631b8ee9fca730806f..719e42e66ca22d0119869f86f0952a22466825a0 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-list-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-list-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-list-err.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-list-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Binding property list evaluation is interrupted by an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -55,8 +55,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - -assert.sameValue(initCount, 0); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary-init.js index 423217c732cf5df1c97046bf4b9bd00e2f965c34..c94f124afcd503c2a0b0d7b5acb23a9eeffb4f31 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Object binding pattern with "nested" array binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -35,10 +35,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary-trailing-comma.js index 1e99e48a458e6a9532b4fed47f93f27298bd5744..8ba6bff36de2cdaeae9e14874f481d264dc3e6d3 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary-value-null.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary-value-null.js index a212dc8673a7b09e78d20f106ce42d014a4808c0..2abe49b562cf9fda7398c3478a4599a836fdccdc 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary-value-null.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary-value-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary-value-null.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary-value-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Object binding pattern with "nested" array binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,6 +51,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary.js index df3745be7f631207b0c6e897b1712c97e5ec7ee8..6ea48d05e6403379e783399e1235d8d9905eeb4f 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-ary.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-ary.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-ary.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Object binding pattern with "nested" array binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-eval-err.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-eval-err.js index 58a568c33d61d6edd179b2fe8da484332fd9a6e0..9ef497d8f252b0c05c86fd82df5d47e6f1b67305 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-eval-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-eval-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-eval-err.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-eval-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Evaluation of property name returns an abrupt completion (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -53,6 +53,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-get-value-err.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-get-value-err.js index 03eb78ef3877260c4f042068c4b12e8ff083b998..6a0f1ebb6d5f48424826473fc35b544c74cc1854 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-get-value-err.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-get-value-err.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-get-value-err.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-get-value-err.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Error thrown when accessing the corresponding property of the value object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,7 +37,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt 1. Let v be GetV(value, propertyName). 2. ReturnIfAbrupt(v). @@ -56,8 +56,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); - -assert.sameValue(initEvalCount, 0); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init-skipped.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init-skipped.js index 4daf8adebd46bb910e9c30f9ef4baae2bb0ef4b6..66047ac4d0d46b79ef6c85a050f76e9f6f933870 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init-skipped.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init-skipped.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-skipped.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-skipped.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Destructuring initializer is not evaluated when value is not `undefined` (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,7 +34,7 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] 3. If Initializer is present and v is undefined, then diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init-throws.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init-throws.js index cbdafa9390e59ec8ecc458a3e7cd61a4b958dc8e..d44e5f627ad6c18c63246d47aaea3d54dae6395e 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init-throws.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init-throws.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-throws.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-throws.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Error thrown when evaluating the initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,13 +37,12 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). ---*/ function thrower() { throw new Test262Error(); @@ -56,6 +55,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, Test262Error)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, Test262Error); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init-unresolvable.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init-unresolvable.js index 5d2f42a843a08c4a0d00d5bfcc4c51f98562232c..20494578b8c619c3fbb8bc632464ba742a58ba92 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init-unresolvable.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init-unresolvable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init-unresolvable.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init-unresolvable.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Destructuring initializer is an unresolvable reference (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -37,15 +37,14 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - BindingElement : BindingPattern Initializeropt + BindingElement : BindingPattern Initializer_opt [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). - 6.2.3.1 GetValue (V) + 6.2.4.1 GetValue ( V ) 1. ReturnIfAbrupt(V). 2. If Type(V) is not Reference, return V. @@ -60,6 +59,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, ReferenceError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, ReferenceError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init.js index 3d3d9f957813c52ad318882fa0fc2e7f42c34aa7..f42e023edb4249e349b0a8a631befcd68598d18b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Binding as specified via property name, identifier, and initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,10 +34,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-trailing-comma.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-trailing-comma.js index 79d99003ba954ca5ee46b09114117466a64c91a0..9eb555b45455c535cd5f1b3e09b45353cb66d271 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-trailing-comma.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id-trailing-comma.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id-trailing-comma.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id-trailing-comma.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Trailing comma is allowed following BindingPropertyList (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id.js index 85aa8ce8666f716712ca81d40c45fa1bec83c7de..b8708bcfbb47dde2f7d5d31b1d8bc9e3a78901a6 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-id.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-id.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-id.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Binding as specified via property name and identifier (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -34,10 +34,10 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization - SingleNameBinding : BindingIdentifier Initializeropt + SingleNameBinding : BindingIdentifier Initializer_opt [...] - 8. Return InitializeReferencedBinding(lhs, v). + 7. Return InitializeReferencedBinding(lhs, v). ---*/ var iterCount = 0; diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj-init.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj-init.js index ee23df9cce039fe043014d85066a58ad44e08246..11b75f9130bd64843df4ae182c6c868f2c722002 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj-init.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj-init.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-init.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-init.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Object binding pattern with "nested" object binding pattern using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -35,10 +35,9 @@ info: | 13.3.3.7 Runtime Semantics: KeyedBindingInitialization [...] - 3. If Initializer is present and v is undefined, then + 4. If Initializer is present and v is undefined, then a. Let defaultValue be the result of evaluating Initializer. - b. Let v be GetValue(defaultValue). - c. ReturnIfAbrupt(v). + b. Set v to ? GetValue(defaultValue). 4. Return the result of performing BindingInitialization for BindingPattern passing v and environment as arguments. ---*/ diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj-value-null.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj-value-null.js index b273cd5454ab1cb66b8693afa0761ab0592ec894..9363b678f6c9374abaa2141ce736f86a509f3aaf 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj-value-null.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj-value-null.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-value-null.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-value-null.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Object binding pattern with "nested" object binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,6 +51,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj-value-undef.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj-value-undef.js index 60ccd93a752305d26e038a7c0b5eb71929672e57..6dadc851e9b3c1fa3b534a28c0508fd28d2d3310 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj-value-undef.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj-value-undef.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj-value-undef.case -// - src/dstr-binding/error/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj-value-undef.case +// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Object binding pattern with "nested" object binding pattern taking the `null` value (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation @@ -51,6 +51,11 @@ async function * gen() { } gen().next() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, TypeError)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, TypeError); + + }) .then($DONE, $DONE); diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj.js index 53cdc27ebd7c65ed92cbab77931f93be97498bc9..868c303f7634e419a24d3daa2f062669d9e19202 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-prop-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-prop-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-prop-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Object binding pattern with "nested" object binding pattern not using initializer (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-getter.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-getter.js index 635c978a2cfdd8910428ab0262c4b38922246e5b..2f44b1d8eba7ba3473194166284a9ec91c68ba79 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-getter.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-getter.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-getter.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-rest-getter.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Getter is called when obj is being deconstructed to a rest Object (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-nested-obj.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-nested-obj.js index ae9548a17d89d9bc7614a93ddd4fb5757fa08d42..1936e3ffe92ae5f8791892b115eb5650adc76134 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-nested-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-nested-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-nested-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-rest-nested-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-obj-nested-rest.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-obj-nested-rest.js index 975c56858170d6335b54e94a5dacc4b248b29b51..a0a0fd71ef3d694e68e46a133148cc1dccfb0dd3 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-obj-nested-rest.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-obj-nested-rest.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-nested-rest.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: When DestructuringAssignmentTarget is an object literal, it should be parsed parsed as a DestructuringAssignmentPattern and evaluated as a destructuring assignment and object rest desconstruction is allowed in that case. (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-obj-own-property.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-obj-own-property.js index f592fcec9444119b0bc2f68bddaf8263bd8b347c..204323c1ab334392bbd39cc990c094d709f26643 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-obj-own-property.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-obj-own-property.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-obj-own-property.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-rest-obj-own-property.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Rest object contains just soruce object's own properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-skip-non-enumerable.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-skip-non-enumerable.js index 1fa9d7a50ef947982b0072eb49e79247decba5ce..86590f05a253598dd3502fe1068603e3ca2142d3 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-skip-non-enumerable.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-skip-non-enumerable.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-rest-skip-non-enumerable.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Rest object doesn't contain non-enumerable properties (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation diff --git a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-val-obj.js b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-val-obj.js index 49b4c8beee7610678e8bc790a95abe3bef3864f6..bc7306843267692c7a65b48d142cd00328ef099b 100644 --- a/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-val-obj.js +++ b/test/language/statements/for-await-of/async-gen-dstr-var-obj-ptrn-rest-val-obj.js @@ -1,6 +1,6 @@ // This file was procedurally generated from the following sources: -// - src/dstr-binding/obj-ptrn-rest-val-obj.case -// - src/dstr-binding/default/for-await-of-async-gen-var.template +// - src/dstr-binding-for-await/obj-ptrn-rest-val-obj.case +// - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: Rest object contains just unextracted data (for-await-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation