Update algorithm step definitions

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
Rick Waldron 2017-05-22 13:16:30 -04:00
parent befaab57a4
commit e522cbce57
51 changed files with 122 additions and 139 deletions

View File

@ -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]
---*/

View File

@ -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

View File

@ -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.

View File

@ -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]]).

View File

@ -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.

View File

@ -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]]).

View File

@ -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.

View File

@ -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]]).

View File

@ -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.

View File

@ -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]]).

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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).

View File

@ -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).

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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
[...]

View File

@ -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
[...]

View File

@ -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

View File

@ -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).

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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.
---*/

View File

@ -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).

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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.
---*/