mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
Update algorithm step definitions
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
parent
befaab57a4
commit
e522cbce57
@ -8,8 +8,7 @@ info: |
|
|||||||
|
|
||||||
BindingPattern : ArrayBindingPattern
|
BindingPattern : ArrayBindingPattern
|
||||||
|
|
||||||
1. Let iterator be GetIterator(value).
|
1. Let iterator be ? GetIterator(value).
|
||||||
2. ReturnIfAbrupt(iterator).
|
|
||||||
features: [Symbol.iterator]
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -6,23 +6,22 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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]]).
|
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
||||||
b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.
|
b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.
|
||||||
c. ReturnIfAbrupt(next).
|
c. ReturnIfAbrupt(next).
|
||||||
d. If next is false, set iteratorRecord.[[done]] to true.
|
d. If next is false, set iteratorRecord.[[done]] to true.
|
||||||
e. Else,
|
e. Else,
|
||||||
[...]
|
|
||||||
i. Let v be IteratorValue(next).
|
i. Let v be IteratorValue(next).
|
||||||
ii. If v is an abrupt completion, set
|
ii. If v is an abrupt completion, set
|
||||||
iteratorRecord.[[done]] to true.
|
iteratorRecord.[[done]] to true.
|
||||||
iii. ReturnIfAbrupt(v).
|
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).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPatternInitializer opt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPatternInitializer opt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
1. If iteratorRecord.[[done]] is false, then
|
1. If iteratorRecord.[[done]] is false, then
|
||||||
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPatternInitializer opt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPatternInitializer opt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
1. If iteratorRecord.[[done]] is false, then
|
1. If iteratorRecord.[[done]] is false, then
|
||||||
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPatternInitializer opt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPatternInitializer opt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
1. If iteratorRecord.[[done]] is false, then
|
1. If iteratorRecord.[[done]] is false, then
|
||||||
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPatternInitializer opt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPatternInitializer opt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
1. If iteratorRecord.[[done]] is false, then
|
1. If iteratorRecord.[[done]] is false, then
|
||||||
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
||||||
|
@ -6,7 +6,7 @@ template: error
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPattern Initializeropt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
1. If iteratorRecord.[[done]] is false, then
|
1. If iteratorRecord.[[done]] is false, then
|
||||||
[...]
|
[...]
|
||||||
@ -20,8 +20,7 @@ info: |
|
|||||||
|
|
||||||
BindingPattern : ArrayBindingPattern
|
BindingPattern : ArrayBindingPattern
|
||||||
|
|
||||||
1. Let iterator be GetIterator(value).
|
1. Let iterator be ? GetIterator(value).
|
||||||
2. ReturnIfAbrupt(iterator).
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,16 +6,16 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
SingleNameBinding : BindingIdentifier Initializeropt
|
SingleNameBinding : BindingIdentifier Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
5. If iteratorRecord.[[done]] is true, let v be undefined.
|
4. If iteratorRecord.[[done]] is true, let v be undefined.
|
||||||
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.
|
a. Let defaultValue be the result of evaluating Initializer.
|
||||||
b. Let v be GetValue(defaultValue).
|
b. Let v be GetValue(defaultValue).
|
||||||
[...]
|
[...]
|
||||||
7. If environment is undefined, return PutValue(lhs, v).
|
6. If environment is undefined, return PutValue(lhs, v).
|
||||||
8. Return InitializeReferencedBinding(lhs, v).
|
7. Return InitializeReferencedBinding(lhs, v).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,17 +6,16 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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.
|
a. Let defaultValue be the result of evaluating Initializer.
|
||||||
b. Let v be GetValue(defaultValue).
|
b. Set v to ? GetValue(defaultValue).
|
||||||
c. ReturnIfAbrupt(v).
|
c. If IsAnonymousFunctionDefinition(Initializer) is true, then
|
||||||
d. If IsAnonymousFunctionDefinition(Initializer) is true, then
|
|
||||||
[...]
|
[...]
|
||||||
7. If environment is undefined, return PutValue(lhs, v).
|
6. If environment is undefined, return PutValue(lhs, v).
|
||||||
8. Return InitializeReferencedBinding(lhs, v).
|
7. Return InitializeReferencedBinding(lhs, v).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,17 +6,16 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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.
|
a. Let defaultValue be the result of evaluating Initializer.
|
||||||
b. Let v be GetValue(defaultValue).
|
b. Set v to ? GetValue(defaultValue).
|
||||||
c. ReturnIfAbrupt(v).
|
c. If IsAnonymousFunctionDefinition(Initializer) is true, then
|
||||||
d. If IsAnonymousFunctionDefinition(Initializer) is true, then
|
|
||||||
[...]
|
[...]
|
||||||
7. If environment is undefined, return PutValue(lhs, v).
|
6. If environment is undefined, return PutValue(lhs, v).
|
||||||
8. Return InitializeReferencedBinding(lhs, v).
|
7. Return InitializeReferencedBinding(lhs, v).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,17 +6,16 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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.
|
a. Let defaultValue be the result of evaluating Initializer.
|
||||||
b. Let v be GetValue(defaultValue).
|
b. Set v to ? GetValue(defaultValue).
|
||||||
c. ReturnIfAbrupt(v).
|
c. If IsAnonymousFunctionDefinition(Initializer) is true, then
|
||||||
d. If IsAnonymousFunctionDefinition(Initializer) is true, then
|
|
||||||
[...]
|
[...]
|
||||||
7. If environment is undefined, return PutValue(lhs, v).
|
6. If environment is undefined, return PutValue(lhs, v).
|
||||||
8. Return InitializeReferencedBinding(lhs, v).
|
7. Return InitializeReferencedBinding(lhs, v).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,17 +6,16 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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.
|
a. Let defaultValue be the result of evaluating Initializer.
|
||||||
b. Let v be GetValue(defaultValue).
|
b. Set v to ? GetValue(defaultValue).
|
||||||
c. ReturnIfAbrupt(v).
|
c. If IsAnonymousFunctionDefinition(Initializer) is true, then
|
||||||
d. If IsAnonymousFunctionDefinition(Initializer) is true, then
|
|
||||||
[...]
|
[...]
|
||||||
7. If environment is undefined, return PutValue(lhs, v).
|
6. If environment is undefined, return PutValue(lhs, v).
|
||||||
8. Return InitializeReferencedBinding(lhs, v).
|
7. Return InitializeReferencedBinding(lhs, v).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,17 +6,16 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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.
|
a. Let defaultValue be the result of evaluating Initializer.
|
||||||
b. Let v be GetValue(defaultValue).
|
b. Set v to ? GetValue(defaultValue).
|
||||||
c. ReturnIfAbrupt(v).
|
c. If IsAnonymousFunctionDefinition(Initializer) is true, then
|
||||||
d. If IsAnonymousFunctionDefinition(Initializer) is true, then
|
|
||||||
[...]
|
[...]
|
||||||
7. If environment is undefined, return PutValue(lhs, v).
|
6. If environment is undefined, return PutValue(lhs, v).
|
||||||
8. Return InitializeReferencedBinding(lhs, v).
|
7. Return InitializeReferencedBinding(lhs, v).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,15 +6,15 @@ template: default
|
|||||||
info: >
|
info: >
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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.
|
a. Let defaultValue be the result of evaluating Initializer.
|
||||||
b. Let v be GetValue(defaultValue).
|
b. Let v be GetValue(defaultValue).
|
||||||
[...]
|
[...]
|
||||||
7. If environment is undefined, return PutValue(lhs, v).
|
6. If environment is undefined, return PutValue(lhs, v).
|
||||||
8. Return InitializeReferencedBinding(lhs, v).
|
7. Return InitializeReferencedBinding(lhs, v).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,13 +6,13 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
SingleNameBinding : BindingIdentifier Initializeropt
|
SingleNameBinding : BindingIdentifier Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
6. If Initializer is present and v is undefined, then
|
6. If Initializer is present and v is undefined, then
|
||||||
[...]
|
[...]
|
||||||
7. If environment is undefined, return PutValue(lhs, v).
|
7. If environment is undefined, return PutValue(lhs, v).
|
||||||
8. Return InitializeReferencedBinding(lhs, v).
|
7. Return InitializeReferencedBinding(lhs, v).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
|
@ -6,13 +6,12 @@ template: error
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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.
|
a. Let defaultValue be the result of evaluating Initializer.
|
||||||
b. Let v be GetValue(defaultValue).
|
b. Set v to ? GetValue(defaultValue).
|
||||||
c. ReturnIfAbrupt(v).
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,15 +6,15 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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.
|
a. Let defaultValue be the result of evaluating Initializer.
|
||||||
b. Let v be GetValue(defaultValue).
|
b. Let v be GetValue(defaultValue).
|
||||||
[...]
|
[...]
|
||||||
7. If environment is undefined, return PutValue(lhs, v).
|
6. If environment is undefined, return PutValue(lhs, v).
|
||||||
8. Return InitializeReferencedBinding(lhs, v).
|
7. Return InitializeReferencedBinding(lhs, v).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,15 +6,14 @@ template: error
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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.
|
a. Let defaultValue be the result of evaluating Initializer.
|
||||||
b. Let v be GetValue(defaultValue).
|
b. Set v to ? GetValue(defaultValue).
|
||||||
c. ReturnIfAbrupt(v).
|
|
||||||
|
|
||||||
6.2.3.1 GetValue (V)
|
6.2.4.1 GetValue ( V )
|
||||||
|
|
||||||
1. ReturnIfAbrupt(V).
|
1. ReturnIfAbrupt(V).
|
||||||
2. If Type(V) is not Reference, return V.
|
2. If Type(V) is not Reference, return V.
|
||||||
|
@ -6,19 +6,19 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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]]).
|
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
||||||
b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.
|
b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.
|
||||||
c. ReturnIfAbrupt(next).
|
c. ReturnIfAbrupt(next).
|
||||||
d. If next is false, set iteratorRecord.[[done]] to true.
|
d. If next is false, set iteratorRecord.[[done]] to true.
|
||||||
e. Else,
|
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).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,14 +6,14 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,10 +6,10 @@ template: error
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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]]).
|
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
||||||
b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.
|
b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.
|
||||||
c. ReturnIfAbrupt(next).
|
c. ReturnIfAbrupt(next).
|
||||||
|
@ -6,10 +6,10 @@ template: error
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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]]).
|
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
||||||
b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.
|
b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.
|
||||||
c. ReturnIfAbrupt(next).
|
c. ReturnIfAbrupt(next).
|
||||||
|
@ -6,23 +6,22 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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]]).
|
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
||||||
b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.
|
b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.
|
||||||
c. ReturnIfAbrupt(next).
|
c. ReturnIfAbrupt(next).
|
||||||
d. If next is false, set iteratorRecord.[[done]] to true.
|
d. If next is false, set iteratorRecord.[[done]] to true.
|
||||||
e. Else,
|
e. Else,
|
||||||
[...]
|
|
||||||
i. Let v be IteratorValue(next).
|
i. Let v be IteratorValue(next).
|
||||||
ii. If v is an abrupt completion, set
|
ii. If v is an abrupt completion, set
|
||||||
iteratorRecord.[[done]] to true.
|
iteratorRecord.[[done]] to true.
|
||||||
iii. ReturnIfAbrupt(v).
|
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).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPatternInitializer opt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPatternInitializer opt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPatternInitializer opt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPatternInitializer opt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
2. If iteratorRecord.[[done]] is true, let v be undefined.
|
||||||
|
@ -6,7 +6,7 @@ template: error
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPattern Initializeropt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
1. If iteratorRecord.[[done]] is false, then
|
1. If iteratorRecord.[[done]] is false, then
|
||||||
[...]
|
[...]
|
||||||
|
@ -6,7 +6,7 @@ template: error
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPattern Initializeropt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
1. If iteratorRecord.[[done]] is false, then
|
1. If iteratorRecord.[[done]] is false, then
|
||||||
[...]
|
[...]
|
||||||
|
@ -19,23 +19,22 @@ info: |
|
|||||||
|
|
||||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
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]]).
|
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
|
||||||
b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.
|
b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.
|
||||||
c. ReturnIfAbrupt(next).
|
c. ReturnIfAbrupt(next).
|
||||||
d. If next is false, set iteratorRecord.[[done]] to true.
|
d. If next is false, set iteratorRecord.[[done]] to true.
|
||||||
e. Else,
|
e. Else,
|
||||||
[...]
|
|
||||||
i. Let v be IteratorValue(next).
|
i. Let v be IteratorValue(next).
|
||||||
ii. If v is an abrupt completion, set
|
ii. If v is an abrupt completion, set
|
||||||
iteratorRecord.[[done]] to true.
|
iteratorRecord.[[done]] to true.
|
||||||
iii. ReturnIfAbrupt(v).
|
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).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,7 +6,7 @@ desc: Error thrown when accessing the corresponding property of the value object
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
||||||
|
|
||||||
SingleNameBinding : BindingIdentifier Initializeropt
|
SingleNameBinding : BindingIdentifier Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
4. Let v be GetV(value, propertyName).
|
4. Let v be GetV(value, propertyName).
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
||||||
|
|
||||||
SingleNameBinding : BindingIdentifier Initializeropt
|
SingleNameBinding : BindingIdentifier Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
6. If Initializer is present and v is undefined, then
|
6. If Initializer is present and v is undefined, then
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
||||||
|
|
||||||
SingleNameBinding : BindingIdentifier Initializeropt
|
SingleNameBinding : BindingIdentifier Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
6. If Initializer is present and v is undefined, then
|
6. If Initializer is present and v is undefined, then
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
||||||
|
|
||||||
SingleNameBinding : BindingIdentifier Initializeropt
|
SingleNameBinding : BindingIdentifier Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
6. If Initializer is present and v is undefined, then
|
6. If Initializer is present and v is undefined, then
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
||||||
|
|
||||||
SingleNameBinding : BindingIdentifier Initializeropt
|
SingleNameBinding : BindingIdentifier Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
6. If Initializer is present and v is undefined, then
|
6. If Initializer is present and v is undefined, then
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
||||||
|
|
||||||
SingleNameBinding : BindingIdentifier Initializeropt
|
SingleNameBinding : BindingIdentifier Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
6. If Initializer is present and v is undefined, then
|
6. If Initializer is present and v is undefined, then
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
||||||
|
|
||||||
SingleNameBinding : BindingIdentifier Initializeropt
|
SingleNameBinding : BindingIdentifier Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
6. If Initializer is present and v is undefined, then
|
6. If Initializer is present and v is undefined, then
|
||||||
|
@ -6,7 +6,7 @@ desc: Error thrown when evaluating the initializer
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
||||||
|
|
||||||
SingleNameBinding : BindingIdentifier Initializeropt
|
SingleNameBinding : BindingIdentifier Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
6. If Initializer is present and v is undefined, then
|
6. If Initializer is present and v is undefined, then
|
||||||
|
@ -6,15 +6,14 @@ template: error
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
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.
|
a. Let defaultValue be the result of evaluating Initializer.
|
||||||
b. Let v be GetValue(defaultValue).
|
b. Set v to ? GetValue(defaultValue).
|
||||||
c. ReturnIfAbrupt(v).
|
|
||||||
|
|
||||||
6.2.3.1 GetValue (V)
|
6.2.4.1 GetValue ( V )
|
||||||
|
|
||||||
1. ReturnIfAbrupt(V).
|
1. ReturnIfAbrupt(V).
|
||||||
2. If Type(V) is not Reference, return V.
|
2. If Type(V) is not Reference, return V.
|
||||||
|
@ -7,10 +7,9 @@ info: |
|
|||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
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.
|
a. Let defaultValue be the result of evaluating Initializer.
|
||||||
b. Let v be GetValue(defaultValue).
|
b. Set v to ? GetValue(defaultValue).
|
||||||
c. ReturnIfAbrupt(v).
|
|
||||||
4. Return the result of performing BindingInitialization for BindingPattern
|
4. Return the result of performing BindingInitialization for BindingPattern
|
||||||
passing v and environment as arguments.
|
passing v and environment as arguments.
|
||||||
---*/
|
---*/
|
||||||
|
@ -6,7 +6,7 @@ template: error
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPattern Initializeropt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
1. Let v be GetV(value, propertyName).
|
1. Let v be GetV(value, propertyName).
|
||||||
2. ReturnIfAbrupt(v).
|
2. ReturnIfAbrupt(v).
|
||||||
|
@ -6,7 +6,7 @@ template: default
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
||||||
|
|
||||||
BindingElement : BindingPattern Initializeropt
|
BindingElement : BindingPattern Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
3. If Initializer is present and v is undefined, then
|
3. If Initializer is present and v is undefined, then
|
||||||
|
@ -6,13 +6,12 @@ desc: Error thrown when evaluating the initializer
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
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.
|
a. Let defaultValue be the result of evaluating Initializer.
|
||||||
b. Let v be GetValue(defaultValue).
|
b. Set v to ? GetValue(defaultValue).
|
||||||
c. ReturnIfAbrupt(v).
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
|
@ -6,15 +6,14 @@ template: error
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
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.
|
a. Let defaultValue be the result of evaluating Initializer.
|
||||||
b. Let v be GetValue(defaultValue).
|
b. Set v to ? GetValue(defaultValue).
|
||||||
c. ReturnIfAbrupt(v).
|
|
||||||
|
|
||||||
6.2.3.1 GetValue (V)
|
6.2.4.1 GetValue ( V )
|
||||||
|
|
||||||
1. ReturnIfAbrupt(V).
|
1. ReturnIfAbrupt(V).
|
||||||
2. If Type(V) is not Reference, return V.
|
2. If Type(V) is not Reference, return V.
|
||||||
|
@ -6,10 +6,10 @@ desc: Binding as specified via property name, identifier, and initializer
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
||||||
|
|
||||||
SingleNameBinding : BindingIdentifier Initializeropt
|
SingleNameBinding : BindingIdentifier Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
8. Return InitializeReferencedBinding(lhs, v).
|
7. Return InitializeReferencedBinding(lhs, v).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -6,10 +6,10 @@ desc: Binding as specified via property name and identifier
|
|||||||
info: |
|
info: |
|
||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
||||||
|
|
||||||
SingleNameBinding : BindingIdentifier Initializeropt
|
SingleNameBinding : BindingIdentifier Initializer_opt
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
8. Return InitializeReferencedBinding(lhs, v).
|
7. Return InitializeReferencedBinding(lhs, v).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- elems
|
//- elems
|
||||||
|
@ -7,10 +7,9 @@ info: |
|
|||||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
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.
|
a. Let defaultValue be the result of evaluating Initializer.
|
||||||
b. Let v be GetValue(defaultValue).
|
b. Set v to ? GetValue(defaultValue).
|
||||||
c. ReturnIfAbrupt(v).
|
|
||||||
4. Return the result of performing BindingInitialization for BindingPattern
|
4. Return the result of performing BindingInitialization for BindingPattern
|
||||||
passing v and environment as arguments.
|
passing v and environment as arguments.
|
||||||
---*/
|
---*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user