mirror of https://github.com/tc39/test262.git
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
|
||||
|
||||
1. Let iterator be GetIterator(value).
|
||||
2. ReturnIfAbrupt(iterator).
|
||||
1. Let iterator be ? GetIterator(value).
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -6,23 +6,22 @@ template: default
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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.
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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]]).
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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.
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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]]).
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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.
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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]]).
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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.
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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]]).
|
||||
|
|
|
@ -6,7 +6,7 @@ template: error
|
|||
info: |
|
||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||
|
||||
BindingElement : BindingPattern Initializeropt
|
||||
BindingElement : BindingPattern Initializer_opt
|
||||
|
||||
1. If iteratorRecord.[[done]] is false, then
|
||||
[...]
|
||||
|
@ -20,8 +20,7 @@ info: |
|
|||
|
||||
BindingPattern : ArrayBindingPattern
|
||||
|
||||
1. Let iterator be GetIterator(value).
|
||||
2. ReturnIfAbrupt(iterator).
|
||||
1. Let iterator be ? GetIterator(value).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,16 +6,16 @@ template: default
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,17 +6,16 @@ template: default
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,17 +6,16 @@ template: default
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,17 +6,16 @@ template: default
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,17 +6,16 @@ template: default
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,17 +6,16 @@ template: default
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,15 +6,15 @@ template: default
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,13 +6,13 @@ template: default
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -6,13 +6,12 @@ template: error
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,15 +6,15 @@ template: default
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,15 +6,14 @@ template: error
|
|||
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.
|
||||
|
|
|
@ -6,19 +6,19 @@ template: default
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,14 +6,14 @@ template: default
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,10 +6,10 @@ template: error
|
|||
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).
|
||||
|
|
|
@ -6,10 +6,10 @@ template: error
|
|||
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).
|
||||
|
|
|
@ -6,23 +6,22 @@ template: default
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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.
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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.
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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.
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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.
|
||||
|
|
|
@ -6,7 +6,7 @@ template: error
|
|||
info: |
|
||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||
|
||||
BindingElement : BindingPattern Initializeropt
|
||||
BindingElement : BindingPattern Initializer_opt
|
||||
|
||||
1. If iteratorRecord.[[done]] is false, then
|
||||
[...]
|
||||
|
|
|
@ -6,7 +6,7 @@ template: error
|
|||
info: |
|
||||
13.3.3.6 Runtime Semantics: IteratorBindingInitialization
|
||||
|
||||
BindingElement : BindingPattern Initializeropt
|
||||
BindingElement : BindingPattern Initializer_opt
|
||||
|
||||
1. If iteratorRecord.[[done]] is false, then
|
||||
[...]
|
||||
|
|
|
@ -19,23 +19,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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,7 +6,7 @@ desc: Error thrown when accessing the corresponding property of the value object
|
|||
info: |
|
||||
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
|
||||
|
||||
SingleNameBinding : BindingIdentifier Initializeropt
|
||||
SingleNameBinding : BindingIdentifier Initializer_opt
|
||||
|
||||
[...]
|
||||
4. Let v be GetV(value, propertyName).
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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
|
||||
|
|
|
@ -6,7 +6,7 @@ desc: Error thrown when evaluating the initializer
|
|||
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
|
||||
|
|
|
@ -6,15 +6,14 @@ template: error
|
|||
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.
|
||||
|
|
|
@ -7,10 +7,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.
|
||||
---*/
|
||||
|
|
|
@ -6,7 +6,7 @@ template: error
|
|||
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).
|
||||
|
|
|
@ -6,7 +6,7 @@ template: default
|
|||
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
|
||||
|
|
|
@ -6,13 +6,12 @@ desc: Error thrown when evaluating the initializer
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -6,15 +6,14 @@ template: error
|
|||
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.
|
||||
|
|
|
@ -6,10 +6,10 @@ desc: Binding as specified via property name, identifier, and initializer
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -6,10 +6,10 @@ desc: Binding as specified via property name and identifier
|
|||
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).
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -7,10 +7,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.
|
||||
---*/
|
||||
|
|
Loading…
Reference in New Issue