Add generators flags for tests depending on generators features (#1259)

* Add missing generators feature flags

* Generate files

* Add generators flags

* fixup! Add generators flags
This commit is contained in:
Leo Balter 2017-10-04 16:12:34 -04:00 committed by Rick Waldron
parent 60c232b4d4
commit b3092c61b6
1841 changed files with 2413 additions and 1647 deletions

View File

@ -11,6 +11,7 @@ info: |
Most ECMAScript functions make an arguments object available to their code. Depending upon the Most ECMAScript functions make an arguments object available to their code. Depending upon the
characteristics of the function definition, its arguments object is either an ordinary object characteristics of the function definition, its arguments object is either an ordinary object
or an arguments exotic object. or an arguments exotic object.
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -11,6 +11,7 @@ info: |
Most ECMAScript functions make an arguments object available to their code. Depending upon the Most ECMAScript functions make an arguments object available to their code. Depending upon the
characteristics of the function definition, its arguments object is either an ordinary object characteristics of the function definition, its arguments object is either an ordinary object
or an arguments exotic object. or an arguments exotic object.
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -13,6 +13,7 @@ info: |
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
features: [generators]
---*/ ---*/
throw "Test262: This statement should not be evaluated."; throw "Test262: This statement should not be evaluated.";

View File

@ -13,6 +13,7 @@ info: |
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
features: [generators]
---*/ ---*/
throw "Test262: This statement should not be evaluated."; throw "Test262: This statement should not be evaluated.";

View File

@ -13,6 +13,7 @@ info: |
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
features: [generators]
---*/ ---*/
throw "Test262: This statement should not be evaluated."; throw "Test262: This statement should not be evaluated.";

View File

@ -13,6 +13,7 @@ info: |
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
features: [generators]
---*/ ---*/
throw "Test262: This statement should not be evaluated."; throw "Test262: This statement should not be evaluated.";

View File

@ -5,6 +5,7 @@
desc: > desc: >
redeclaration with GeneratorDeclaration redeclaration with GeneratorDeclaration
template: redeclare template: redeclare
features: [generators]
---*/ ---*/
//- body //- body

View File

@ -13,6 +13,7 @@ info: |
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
features: [generators]
---*/ ---*/
throw "Test262: This statement should not be evaluated."; throw "Test262: This statement should not be evaluated.";

View File

@ -13,6 +13,7 @@ info: |
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
features: [generators]
---*/ ---*/
throw "Test262: This statement should not be evaluated."; throw "Test262: This statement should not be evaluated.";

View File

@ -15,6 +15,7 @@ info: |
b. Let v be ? GetValue(defaultValue). b. Let v be ? GetValue(defaultValue).
4. Return the result of performing BindingInitialization of BindingPattern 4. Return the result of performing BindingInitialization of BindingPattern
with v and environment as the arguments. with v and environment as the arguments.
features: [generators]
---*/ ---*/
//- setup //- setup

View File

@ -16,6 +16,7 @@ info: |
[...] [...]
6. If environment is undefined, return PutValue(lhs, v). 6. If environment is undefined, return PutValue(lhs, v).
7. Return InitializeReferencedBinding(lhs, v). 7. Return InitializeReferencedBinding(lhs, v).
features: [generators]
---*/ ---*/
//- elems //- elems

View File

@ -5,6 +5,7 @@
template: iter-close template: iter-close
desc: > desc: >
The iterator is properly consumed by the destructuring pattern The iterator is properly consumed by the destructuring pattern
features: [generators]
---*/ ---*/
//- setup //- setup

View File

@ -5,6 +5,7 @@
template: iter-close template: iter-close
desc: > desc: >
The iterator is properly consumed by the destructuring pattern The iterator is properly consumed by the destructuring pattern
features: [generators]
---*/ ---*/
//- setup //- setup

View File

@ -16,6 +16,7 @@ info: |
ii. ReturnIfAbrupt(hasNameProperty). ii. ReturnIfAbrupt(hasNameProperty).
iii. If hasNameProperty is false, perform SetFunctionName(v, iii. If hasNameProperty is false, perform SetFunctionName(v,
bindingId). bindingId).
features: [generators]
---*/ ---*/
//- elems //- elems

View File

@ -15,6 +15,7 @@ info: |
b. Let v be ? GetValue(defaultValue). b. Let v be ? GetValue(defaultValue).
4. Return the result of performing BindingInitialization of BindingPattern 4. Return the result of performing BindingInitialization of BindingPattern
with v and environment as the arguments. with v and environment as the arguments.
features: [generators]
---*/ ---*/
//- setup //- setup

View File

@ -17,6 +17,7 @@ info: |
[...] [...]
7. If environment is undefined, return PutValue(lhs, v). 7. If environment is undefined, return PutValue(lhs, v).
8. Return InitializeReferencedBinding(lhs, v). 8. Return InitializeReferencedBinding(lhs, v).
features: [generators]
---*/ ---*/
//- elems //- elems

View File

@ -5,6 +5,7 @@
template: iter-close template: iter-close
desc: > desc: >
The iterator is properly consumed by the destructuring pattern The iterator is properly consumed by the destructuring pattern
features: [generators]
---*/ ---*/
//- setup //- setup

View File

@ -5,6 +5,7 @@
template: iter-close template: iter-close
desc: > desc: >
The iterator is properly consumed by the destructuring pattern The iterator is properly consumed by the destructuring pattern
features: [generators]
---*/ ---*/
//- setup //- setup

View File

@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-dflt-
name: class expression method (default parameters) name: class expression method (default parameters)
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16 es6id: 14.5.16
features: [destructuring-binding, default-parameters] features: [generators, destructuring-binding, default-parameters]
info: | info: |
ClassDeclaration : class BindingIdentifier ClassTail ClassDeclaration : class BindingIdentifier ClassTail

View File

@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-static-dflt-
name: static class expression generator method (default parameter) name: static class expression generator method (default parameter)
esid: sec-runtime-semantics-bindingclassdeclarationevaluation esid: sec-runtime-semantics-bindingclassdeclarationevaluation
es6id: 14.5.15 es6id: 14.5.15
features: [destructuring-binding, default-parameters] features: [generators, destructuring-binding, default-parameters]
info: | info: |
ClassDeclaration : class BindingIdentifier ClassTail ClassDeclaration : class BindingIdentifier ClassTail

View File

@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-static-
name: static class expression generator method name: static class expression generator method
esid: sec-runtime-semantics-bindingclassdeclarationevaluation esid: sec-runtime-semantics-bindingclassdeclarationevaluation
es6id: 14.5.15 es6id: 14.5.15
features: [destructuring-binding] features: [generators, destructuring-binding]
info: | info: |
ClassDeclaration : class BindingIdentifier ClassTail ClassDeclaration : class BindingIdentifier ClassTail

View File

@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-
name: class expression method name: class expression method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16 es6id: 14.5.16
features: [destructuring-binding] features: [generators, destructuring-binding]
info: | info: |
ClassDeclaration : class BindingIdentifier ClassTail ClassDeclaration : class BindingIdentifier ClassTail

View File

@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-dflt-
name: class expression method (default parameter) name: class expression method (default parameter)
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16 es6id: 14.5.16
features: [destructuring-binding, default-parameters] features: [generators, destructuring-binding, default-parameters]
info: | info: |
ClassExpression : class BindingIdentifieropt ClassTail ClassExpression : class BindingIdentifieropt ClassTail

View File

@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-static-dflt-
name: static class expression generator method (default parameter) name: static class expression generator method (default parameter)
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16 es6id: 14.5.16
features: [destructuring-binding, default-parameters] features: [generators, destructuring-binding, default-parameters]
info: | info: |
ClassExpression : class BindingIdentifieropt ClassTail ClassExpression : class BindingIdentifieropt ClassTail

View File

@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-static-
name: static class expression generator method name: static class expression generator method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16 es6id: 14.5.16
features: [destructuring-binding] features: [generators, destructuring-binding]
info: | info: |
ClassExpression : class BindingIdentifieropt ClassTail ClassExpression : class BindingIdentifieropt ClassTail

View File

@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-
name: class expression method name: class expression method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16 es6id: 14.5.16
features: [destructuring-binding] features: [generators, destructuring-binding]
info: | info: |
ClassExpression : class BindingIdentifieropt ClassTail ClassExpression : class BindingIdentifieropt ClassTail

View File

@ -5,7 +5,7 @@ path: language/statements/generators/dstr-dflt-
name: generator function declaration (default parameter) name: generator function declaration (default parameter)
esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionobject esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionobject
es6id: 14.4.12 es6id: 14.4.12
features: [destructuring-binding, default-parameters] features: [generators, destructuring-binding, default-parameters]
info: | info: |
GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody } GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }

View File

@ -5,7 +5,7 @@ path: language/statements/generators/dstr-
name: generator function declaration name: generator function declaration
esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionobject esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionobject
es6id: 14.4.12 es6id: 14.4.12
features: [destructuring-binding] features: [generators, destructuring-binding]
info: | info: |
GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody } GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }

View File

@ -5,7 +5,7 @@ path: language/expressions/generators/dstr-dflt-
name: generator function expression (default parameter) name: generator function expression (default parameter)
esid: sec-generator-function-definitions-runtime-semantics-evaluation esid: sec-generator-function-definitions-runtime-semantics-evaluation
es6id: 14.4.14 es6id: 14.4.14
features: [destructuring-binding, default-parameters] features: [generators, destructuring-binding, default-parameters]
info: | info: |
GeneratorExpression : function * ( FormalParameters ) { GeneratorBody } GeneratorExpression : function * ( FormalParameters ) { GeneratorBody }

View File

@ -5,7 +5,7 @@ path: language/expressions/generators/dstr-
name: generator function expression name: generator function expression
esid: sec-generator-function-definitions-runtime-semantics-evaluation esid: sec-generator-function-definitions-runtime-semantics-evaluation
es6id: 14.4.14 es6id: 14.4.14
features: [destructuring-binding] features: [generators, destructuring-binding]
info: | info: |
GeneratorExpression : function * ( FormalParameters ) { GeneratorBody } GeneratorExpression : function * ( FormalParameters ) { GeneratorBody }

View File

@ -5,7 +5,7 @@ path: language/expressions/object/dstr-gen-meth-
name: generator method name: generator method
esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation
es6id: 14.4.13 es6id: 14.4.13
features: [destructuring-binding] features: [generators, destructuring-binding]
info: | info: |
GeneratorMethod : GeneratorMethod :
* PropertyName ( StrictFormalParameters ) { GeneratorBody } * PropertyName ( StrictFormalParameters ) { GeneratorBody }

View File

@ -5,7 +5,7 @@ path: language/expressions/object/dstr-gen-meth-dflt-
name: generator method (default parameter) name: generator method (default parameter)
esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation
es6id: 14.4.13 es6id: 14.4.13
features: [destructuring-binding, default-parameters] features: [generators, destructuring-binding, default-parameters]
info: | info: |
GeneratorMethod : GeneratorMethod :
* PropertyName ( StrictFormalParameters ) { GeneratorBody } * PropertyName ( StrictFormalParameters ) { GeneratorBody }

View File

@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-dflt-
name: class expression method (default parameter) name: class expression method (default parameter)
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16 es6id: 14.5.16
features: [destructuring-binding, default-parameters] features: [generators, destructuring-binding, default-parameters]
info: | info: |
ClassDeclaration : class BindingIdentifier ClassTail ClassDeclaration : class BindingIdentifier ClassTail

View File

@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-static-dflt-
name: static class expression generator method (default parameter) name: static class expression generator method (default parameter)
esid: sec-runtime-semantics-bindingclassdeclarationevaluation esid: sec-runtime-semantics-bindingclassdeclarationevaluation
es6id: 14.5.15 es6id: 14.5.15
features: [destructuring-binding, default-parameters] features: [generators, destructuring-binding, default-parameters]
info: | info: |
ClassDeclaration : class BindingIdentifier ClassTail ClassDeclaration : class BindingIdentifier ClassTail

View File

@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-static-
name: static class expression generator method name: static class expression generator method
esid: sec-runtime-semantics-bindingclassdeclarationevaluation esid: sec-runtime-semantics-bindingclassdeclarationevaluation
es6id: 14.5.15 es6id: 14.5.15
features: [destructuring-binding] features: [generators, destructuring-binding]
info: | info: |
ClassDeclaration : class BindingIdentifier ClassTail ClassDeclaration : class BindingIdentifier ClassTail

View File

@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-
name: class expression method name: class expression method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16 es6id: 14.5.16
features: [destructuring-binding] features: [generators, destructuring-binding]
info: | info: |
ClassDeclaration : class BindingIdentifier ClassTail ClassDeclaration : class BindingIdentifier ClassTail

View File

@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-dflt-
name: class expression method (default parameter) name: class expression method (default parameter)
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16 es6id: 14.5.16
features: [destructuring-binding, default-parameters] features: [generators, destructuring-binding, default-parameters]
info: | info: |
ClassExpression : class BindingIdentifieropt ClassTail ClassExpression : class BindingIdentifieropt ClassTail

View File

@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-static-dflt-
name: static class expression generator method (default parameter) name: static class expression generator method (default parameter)
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16 es6id: 14.5.16
features: [destructuring-binding, default-parameters] features: [generators, destructuring-binding, default-parameters]
info: | info: |
ClassExpression : class BindingIdentifieropt ClassTail ClassExpression : class BindingIdentifieropt ClassTail

View File

@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-static-
name: static class expression generator method name: static class expression generator method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16 es6id: 14.5.16
features: [destructuring-binding] features: [generators, destructuring-binding]
info: | info: |
ClassExpression : class BindingIdentifieropt ClassTail ClassExpression : class BindingIdentifieropt ClassTail

View File

@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-
name: class expression method name: class expression method
esid: sec-class-definitions-runtime-semantics-evaluation esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16 es6id: 14.5.16
features: [destructuring-binding] features: [generators, destructuring-binding]
info: | info: |
ClassExpression : class BindingIdentifieropt ClassTail ClassExpression : class BindingIdentifieropt ClassTail

View File

@ -5,7 +5,7 @@ path: language/statements/generators/dstr-dflt-
name: generator function declaration (default parameter) name: generator function declaration (default parameter)
esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionobject esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionobject
es6id: 14.4.12 es6id: 14.4.12
features: [destructuring-binding, default-parameters] features: [generators, destructuring-binding, default-parameters]
info: | info: |
GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody } GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }

View File

@ -5,7 +5,7 @@ path: language/statements/generators/dstr-
name: generator function declaration name: generator function declaration
esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionobject esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionobject
es6id: 14.4.12 es6id: 14.4.12
features: [destructuring-binding] features: [generators, destructuring-binding]
info: | info: |
GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody } GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }

View File

@ -5,7 +5,7 @@ path: language/expressions/generators/dstr-dflt-
name: generator function expression (default parameter) name: generator function expression (default parameter)
esid: sec-generator-function-definitions-runtime-semantics-evaluation esid: sec-generator-function-definitions-runtime-semantics-evaluation
es6id: 14.4.14 es6id: 14.4.14
features: [destructuring-binding, default-parameters] features: [generators, destructuring-binding, default-parameters]
info: | info: |
GeneratorExpression : function * ( FormalParameters ) { GeneratorBody } GeneratorExpression : function * ( FormalParameters ) { GeneratorBody }

View File

@ -5,7 +5,7 @@ path: language/expressions/generators/dstr-
name: generator function expression name: generator function expression
esid: sec-generator-function-definitions-runtime-semantics-evaluation esid: sec-generator-function-definitions-runtime-semantics-evaluation
es6id: 14.4.14 es6id: 14.4.14
features: [destructuring-binding] features: [generators, destructuring-binding]
info: | info: |
GeneratorExpression : function * ( FormalParameters ) { GeneratorBody } GeneratorExpression : function * ( FormalParameters ) { GeneratorBody }

View File

@ -5,7 +5,7 @@ path: language/expressions/object/dstr-gen-meth-dflt-
name: generator method (default parameter) name: generator method (default parameter)
esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation
es6id: 14.4.13 es6id: 14.4.13
features: [destructuring-binding, default-parameters] features: [generators, destructuring-binding, default-parameters]
info: | info: |
GeneratorMethod : GeneratorMethod :
* PropertyName ( StrictFormalParameters ) { GeneratorBody } * PropertyName ( StrictFormalParameters ) { GeneratorBody }

View File

@ -5,7 +5,7 @@ path: language/expressions/object/dstr-gen-meth-
name: generator method name: generator method
esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation
es6id: 14.4.13 es6id: 14.4.13
features: [destructuring-binding] features: [generators, destructuring-binding]
info: | info: |
GeneratorMethod : GeneratorMethod :
* PropertyName ( StrictFormalParameters ) { GeneratorBody } * PropertyName ( StrictFormalParameters ) { GeneratorBody }

View File

@ -16,6 +16,7 @@ info: |
ii. ReturnIfAbrupt(hasNameProperty). ii. ReturnIfAbrupt(hasNameProperty).
iii. If hasNameProperty is false, perform SetFunctionName(v, iii. If hasNameProperty is false, perform SetFunctionName(v,
bindingId). bindingId).
features: [generators]
---*/ ---*/
//- elems //- elems

View File

@ -55,6 +55,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -55,6 +55,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -57,6 +57,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -57,6 +57,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -34,6 +34,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -34,6 +34,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -39,6 +39,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -55,6 +55,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -55,6 +55,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -57,6 +57,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -57,6 +57,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -34,6 +34,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -34,6 +34,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -39,6 +39,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -55,6 +55,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
class C { class C {

View File

@ -55,6 +55,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
class C { class C {

View File

@ -57,6 +57,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
0, class { 0, class {

View File

@ -57,6 +57,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
0, class { 0, class {

View File

@ -34,6 +34,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
function* f(/*{ params }*/) { function* f(/*{ params }*/) {

View File

@ -34,6 +34,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
0, function*(/*{ params }*/) { 0, function*(/*{ params }*/) {

View File

@ -39,6 +39,7 @@ info: |
b. Let formalStatus be IteratorBindingInitialization for formals with b. Let formalStatus be IteratorBindingInitialization for formals with
iteratorRecord and env as arguments. iteratorRecord and env as arguments.
[...] [...]
features: [generators]
---*/ ---*/
0, { 0, {

View File

@ -15,6 +15,7 @@ info: |
GeneratorMethod : GeneratorMethod :
* PropertyName ( UniqueFormalParameters ) { GeneratorBody } * PropertyName ( UniqueFormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -15,6 +15,7 @@ info: |
GeneratorMethod : GeneratorMethod :
* PropertyName ( UniqueFormalParameters ) { GeneratorBody } * PropertyName ( UniqueFormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -15,6 +15,7 @@ info: |
GeneratorMethod : GeneratorMethod :
* PropertyName ( UniqueFormalParameters ) { GeneratorBody } * PropertyName ( UniqueFormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -15,6 +15,7 @@ info: |
GeneratorMethod : GeneratorMethod :
* PropertyName ( UniqueFormalParameters ) { GeneratorBody } * PropertyName ( UniqueFormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -9,6 +9,7 @@ info: |
GeneratorDeclaration : GeneratorDeclaration :
function * BindingIdentifier ( FormalParameters ) { GeneratorBody } function * BindingIdentifier ( FormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -9,6 +9,7 @@ info: |
GeneratorExpression: GeneratorExpression:
function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody } function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -9,6 +9,7 @@ info: |
GeneratorExpression: GeneratorExpression:
function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody } function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -9,6 +9,7 @@ info: |
GeneratorMethod[Yield, Await]: GeneratorMethod[Yield, Await]:
* PropertyName[?Yield, ?Await] ( UniqueFormalParameters[+Yield, ~Await] ) { GeneratorBody } * PropertyName[?Yield, ?Await] ( UniqueFormalParameters[+Yield, ~Await] ) { GeneratorBody }
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -9,6 +9,7 @@ info: |
GeneratorDeclaration[Yield, Await, Default]: GeneratorDeclaration[Yield, Await, Default]:
function * BindingIdentifier[?Yield, ?Await] ( FormalParameters[+Yield, ~Await] ) { GeneratorBody } function * BindingIdentifier[?Yield, ?Await] ( FormalParameters[+Yield, ~Await] ) { GeneratorBody }
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -9,6 +9,7 @@ info: |
GeneratorExpression: GeneratorExpression:
function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody } function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -9,6 +9,7 @@ info: |
GeneratorExpression: GeneratorExpression:
function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody } function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -9,6 +9,7 @@ info: |
GeneratorMethod[Yield, Await]: GeneratorMethod[Yield, Await]:
* PropertyName ( UniqueFormalParameters ) { GeneratorBody } * PropertyName ( UniqueFormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
var callCount = 0; var callCount = 0;

View File

@ -15,6 +15,7 @@ info: |
GeneratorMethod : GeneratorMethod :
* PropertyName ( UniqueFormalParameters ) { GeneratorBody } * PropertyName ( UniqueFormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
class C { *gen() { class C { *gen() {

View File

@ -15,6 +15,7 @@ info: |
GeneratorMethod : GeneratorMethod :
* PropertyName ( UniqueFormalParameters ) { GeneratorBody } * PropertyName ( UniqueFormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
class C {static *gen() { class C {static *gen() {

View File

@ -15,6 +15,7 @@ info: |
GeneratorMethod : GeneratorMethod :
* PropertyName ( UniqueFormalParameters ) { GeneratorBody } * PropertyName ( UniqueFormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
var C = class {*gen() { var C = class {*gen() {

View File

@ -15,6 +15,7 @@ info: |
GeneratorMethod : GeneratorMethod :
* PropertyName ( UniqueFormalParameters ) { GeneratorBody } * PropertyName ( UniqueFormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
var C = class { static *gen() { var C = class { static *gen() {

View File

@ -9,6 +9,7 @@ info: |
GeneratorDeclaration : GeneratorDeclaration :
function * BindingIdentifier ( FormalParameters ) { GeneratorBody } function * BindingIdentifier ( FormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
function *gen() { function *gen() {

View File

@ -9,6 +9,7 @@ info: |
GeneratorExpression: GeneratorExpression:
function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody } function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
var gen = function *g() { var gen = function *g() {

View File

@ -9,6 +9,7 @@ info: |
GeneratorExpression: GeneratorExpression:
function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody } function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody }
features: [generators]
---*/ ---*/
var gen = function *() { var gen = function *() {

View File

@ -9,6 +9,7 @@ info: |
GeneratorMethod[Yield, Await]: GeneratorMethod[Yield, Await]:
* PropertyName[?Yield, ?Await] ( UniqueFormalParameters[+Yield, ~Await] ) { GeneratorBody } * PropertyName[?Yield, ?Await] ( UniqueFormalParameters[+Yield, ~Await] ) { GeneratorBody }
features: [generators]
---*/ ---*/
var obj = { var obj = {

View File

@ -12,6 +12,7 @@ info: |
2. Let spreadRef be the result of evaluating AssignmentExpression. 2. Let spreadRef be the result of evaluating AssignmentExpression.
3. Let iterator be GetIterator(GetValue(spreadRef) ). 3. Let iterator be GetIterator(GetValue(spreadRef) ).
4. ReturnIfAbrupt(iterator). 4. ReturnIfAbrupt(iterator).
features: [generators]
---*/ ---*/
//- error //- error

View File

@ -7,6 +7,7 @@ description: Object extensibility
info: > info: >
The value of the [[Extensible]] internal slot of the GeneratorFunction The value of the [[Extensible]] internal slot of the GeneratorFunction
constructor is true. constructor is true.
features: [generators]
---*/ ---*/
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;

View File

@ -5,6 +5,7 @@ es6id: 25.2
description: > description: >
Generator function instances are correctly reported as instances of the Generator function instances are correctly reported as instances of the
GeneratorFunction intrinsic. GeneratorFunction intrinsic.
features: [generators]
---*/ ---*/
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;

View File

@ -18,6 +18,7 @@ info: |
b. Perform DefinePropertyOrThrow(F, "prototype", PropertyDescriptor{[[Value]]: prototype, b. Perform DefinePropertyOrThrow(F, "prototype", PropertyDescriptor{[[Value]]: prototype,
[[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: false}). [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: false}).
... ...
features: [generators]
---*/ ---*/
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;

View File

@ -22,6 +22,7 @@ info: |
false, [[Configurable]]: true}). false, [[Configurable]]: true}).
[...] [...]
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [generators]
---*/ ---*/
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;

View File

@ -14,6 +14,7 @@ info: >
[...] [...]
29. Perform SetFunctionName(F, "anonymous"). 29. Perform SetFunctionName(F, "anonymous").
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [generators]
---*/ ---*/
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;

View File

@ -18,6 +18,7 @@ info: |
[[Enumerable]]: false, [[Configurable]]: false}). [[Enumerable]]: false, [[Configurable]]: false}).
[...] [...]
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [generators]
---*/ ---*/
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;

View File

@ -14,6 +14,7 @@ info: |
20. If kind is "generator", then 20. If kind is "generator", then
a. If parameters Contains YieldExpression is true, throw a SyntaxError a. If parameters Contains YieldExpression is true, throw a SyntaxError
exception. exception.
features: [generators]
---*/ ---*/
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;

View File

@ -5,6 +5,7 @@ es6id: 25.2
description: > description: >
When invoked via the constructor invocation pattern without arguments, the When invoked via the constructor invocation pattern without arguments, the
GeneratorFunction intrinsic returns a valid generator with an empty body. GeneratorFunction intrinsic returns a valid generator with an empty body.
features: [generators]
---*/ ---*/
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;

View File

@ -7,6 +7,7 @@ description: >
the GeneratorFunction intrinsic creates a valid generator whose body is the the GeneratorFunction intrinsic creates a valid generator whose body is the
last argument evaluated as source code and whose formal parameters are last argument evaluated as source code and whose formal parameters are
defined by the preceeding arguments. defined by the preceeding arguments.
features: [generators]
---*/ ---*/
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;

View File

@ -5,6 +5,7 @@ es6id: 25.2
description: > description: >
When invoked via the function invocation pattern without arguments, the When invoked via the function invocation pattern without arguments, the
GeneratorFunction intrinsic returns a valid generator with an empty body. GeneratorFunction intrinsic returns a valid generator with an empty body.
features: [generators]
---*/ ---*/
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;

View File

@ -6,6 +6,7 @@ description: >
When invoked via the function invocation pattern with a single argument, When invoked via the function invocation pattern with a single argument,
the GeneratorFunction intrinsic creates a valid generator whose body is the the GeneratorFunction intrinsic creates a valid generator whose body is the
first argument evaluated as source code. first argument evaluated as source code.
features: [generators]
---*/ ---*/
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;

Some files were not shown because too many files have changed in this diff Show More