mirror of https://github.com/tc39/test262.git
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:
parent
60c232b4d4
commit
b3092c61b6
|
@ -11,6 +11,7 @@ info: |
|
|||
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
|
||||
or an arguments exotic object.
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -11,6 +11,7 @@ info: |
|
|||
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
|
||||
or an arguments exotic object.
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
desc: >
|
||||
redeclaration with GeneratorDeclaration
|
||||
template: redeclare
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
//- body
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
|
|
@ -15,6 +15,7 @@ info: |
|
|||
b. Let v be ? GetValue(defaultValue).
|
||||
4. Return the result of performing BindingInitialization of BindingPattern
|
||||
with v and environment as the arguments.
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -16,6 +16,7 @@ info: |
|
|||
[...]
|
||||
6. If environment is undefined, return PutValue(lhs, v).
|
||||
7. Return InitializeReferencedBinding(lhs, v).
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
template: iter-close
|
||||
desc: >
|
||||
The iterator is properly consumed by the destructuring pattern
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
template: iter-close
|
||||
desc: >
|
||||
The iterator is properly consumed by the destructuring pattern
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -16,6 +16,7 @@ info: |
|
|||
ii. ReturnIfAbrupt(hasNameProperty).
|
||||
iii. If hasNameProperty is false, perform SetFunctionName(v,
|
||||
bindingId).
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -15,6 +15,7 @@ info: |
|
|||
b. Let v be ? GetValue(defaultValue).
|
||||
4. Return the result of performing BindingInitialization of BindingPattern
|
||||
with v and environment as the arguments.
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -17,6 +17,7 @@ info: |
|
|||
[...]
|
||||
7. If environment is undefined, return PutValue(lhs, v).
|
||||
8. Return InitializeReferencedBinding(lhs, v).
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
template: iter-close
|
||||
desc: >
|
||||
The iterator is properly consumed by the destructuring pattern
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
template: iter-close
|
||||
desc: >
|
||||
The iterator is properly consumed by the destructuring pattern
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-dflt-
|
|||
name: class expression method (default parameters)
|
||||
esid: sec-class-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.5.16
|
||||
features: [destructuring-binding, default-parameters]
|
||||
features: [generators, destructuring-binding, default-parameters]
|
||||
info: |
|
||||
ClassDeclaration : class BindingIdentifier ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-static-dflt-
|
|||
name: static class expression generator method (default parameter)
|
||||
esid: sec-runtime-semantics-bindingclassdeclarationevaluation
|
||||
es6id: 14.5.15
|
||||
features: [destructuring-binding, default-parameters]
|
||||
features: [generators, destructuring-binding, default-parameters]
|
||||
info: |
|
||||
ClassDeclaration : class BindingIdentifier ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-static-
|
|||
name: static class expression generator method
|
||||
esid: sec-runtime-semantics-bindingclassdeclarationevaluation
|
||||
es6id: 14.5.15
|
||||
features: [destructuring-binding]
|
||||
features: [generators, destructuring-binding]
|
||||
info: |
|
||||
ClassDeclaration : class BindingIdentifier ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-
|
|||
name: class expression method
|
||||
esid: sec-class-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.5.16
|
||||
features: [destructuring-binding]
|
||||
features: [generators, destructuring-binding]
|
||||
info: |
|
||||
ClassDeclaration : class BindingIdentifier ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-dflt-
|
|||
name: class expression method (default parameter)
|
||||
esid: sec-class-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.5.16
|
||||
features: [destructuring-binding, default-parameters]
|
||||
features: [generators, destructuring-binding, default-parameters]
|
||||
info: |
|
||||
ClassExpression : class BindingIdentifieropt ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-static-dflt-
|
|||
name: static class expression generator method (default parameter)
|
||||
esid: sec-class-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.5.16
|
||||
features: [destructuring-binding, default-parameters]
|
||||
features: [generators, destructuring-binding, default-parameters]
|
||||
info: |
|
||||
ClassExpression : class BindingIdentifieropt ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-static-
|
|||
name: static class expression generator method
|
||||
esid: sec-class-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.5.16
|
||||
features: [destructuring-binding]
|
||||
features: [generators, destructuring-binding]
|
||||
info: |
|
||||
ClassExpression : class BindingIdentifieropt ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-
|
|||
name: class expression method
|
||||
esid: sec-class-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.5.16
|
||||
features: [destructuring-binding]
|
||||
features: [generators, destructuring-binding]
|
||||
info: |
|
||||
ClassExpression : class BindingIdentifieropt ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/statements/generators/dstr-dflt-
|
|||
name: generator function declaration (default parameter)
|
||||
esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionobject
|
||||
es6id: 14.4.12
|
||||
features: [destructuring-binding, default-parameters]
|
||||
features: [generators, destructuring-binding, default-parameters]
|
||||
info: |
|
||||
GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/statements/generators/dstr-
|
|||
name: generator function declaration
|
||||
esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionobject
|
||||
es6id: 14.4.12
|
||||
features: [destructuring-binding]
|
||||
features: [generators, destructuring-binding]
|
||||
info: |
|
||||
GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/generators/dstr-dflt-
|
|||
name: generator function expression (default parameter)
|
||||
esid: sec-generator-function-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.4.14
|
||||
features: [destructuring-binding, default-parameters]
|
||||
features: [generators, destructuring-binding, default-parameters]
|
||||
info: |
|
||||
GeneratorExpression : function * ( FormalParameters ) { GeneratorBody }
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/generators/dstr-
|
|||
name: generator function expression
|
||||
esid: sec-generator-function-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.4.14
|
||||
features: [destructuring-binding]
|
||||
features: [generators, destructuring-binding]
|
||||
info: |
|
||||
GeneratorExpression : function * ( FormalParameters ) { GeneratorBody }
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/object/dstr-gen-meth-
|
|||
name: generator method
|
||||
esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation
|
||||
es6id: 14.4.13
|
||||
features: [destructuring-binding]
|
||||
features: [generators, destructuring-binding]
|
||||
info: |
|
||||
GeneratorMethod :
|
||||
* PropertyName ( StrictFormalParameters ) { GeneratorBody }
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/object/dstr-gen-meth-dflt-
|
|||
name: generator method (default parameter)
|
||||
esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation
|
||||
es6id: 14.4.13
|
||||
features: [destructuring-binding, default-parameters]
|
||||
features: [generators, destructuring-binding, default-parameters]
|
||||
info: |
|
||||
GeneratorMethod :
|
||||
* PropertyName ( StrictFormalParameters ) { GeneratorBody }
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-dflt-
|
|||
name: class expression method (default parameter)
|
||||
esid: sec-class-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.5.16
|
||||
features: [destructuring-binding, default-parameters]
|
||||
features: [generators, destructuring-binding, default-parameters]
|
||||
info: |
|
||||
ClassDeclaration : class BindingIdentifier ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-static-dflt-
|
|||
name: static class expression generator method (default parameter)
|
||||
esid: sec-runtime-semantics-bindingclassdeclarationevaluation
|
||||
es6id: 14.5.15
|
||||
features: [destructuring-binding, default-parameters]
|
||||
features: [generators, destructuring-binding, default-parameters]
|
||||
info: |
|
||||
ClassDeclaration : class BindingIdentifier ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-static-
|
|||
name: static class expression generator method
|
||||
esid: sec-runtime-semantics-bindingclassdeclarationevaluation
|
||||
es6id: 14.5.15
|
||||
features: [destructuring-binding]
|
||||
features: [generators, destructuring-binding]
|
||||
info: |
|
||||
ClassDeclaration : class BindingIdentifier ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/statements/class/dstr-gen-meth-
|
|||
name: class expression method
|
||||
esid: sec-class-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.5.16
|
||||
features: [destructuring-binding]
|
||||
features: [generators, destructuring-binding]
|
||||
info: |
|
||||
ClassDeclaration : class BindingIdentifier ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-dflt-
|
|||
name: class expression method (default parameter)
|
||||
esid: sec-class-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.5.16
|
||||
features: [destructuring-binding, default-parameters]
|
||||
features: [generators, destructuring-binding, default-parameters]
|
||||
info: |
|
||||
ClassExpression : class BindingIdentifieropt ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-static-dflt-
|
|||
name: static class expression generator method (default parameter)
|
||||
esid: sec-class-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.5.16
|
||||
features: [destructuring-binding, default-parameters]
|
||||
features: [generators, destructuring-binding, default-parameters]
|
||||
info: |
|
||||
ClassExpression : class BindingIdentifieropt ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-static-
|
|||
name: static class expression generator method
|
||||
esid: sec-class-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.5.16
|
||||
features: [destructuring-binding]
|
||||
features: [generators, destructuring-binding]
|
||||
info: |
|
||||
ClassExpression : class BindingIdentifieropt ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/class/dstr-gen-meth-
|
|||
name: class expression method
|
||||
esid: sec-class-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.5.16
|
||||
features: [destructuring-binding]
|
||||
features: [generators, destructuring-binding]
|
||||
info: |
|
||||
ClassExpression : class BindingIdentifieropt ClassTail
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/statements/generators/dstr-dflt-
|
|||
name: generator function declaration (default parameter)
|
||||
esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionobject
|
||||
es6id: 14.4.12
|
||||
features: [destructuring-binding, default-parameters]
|
||||
features: [generators, destructuring-binding, default-parameters]
|
||||
info: |
|
||||
GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/statements/generators/dstr-
|
|||
name: generator function declaration
|
||||
esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionobject
|
||||
es6id: 14.4.12
|
||||
features: [destructuring-binding]
|
||||
features: [generators, destructuring-binding]
|
||||
info: |
|
||||
GeneratorDeclaration : function * ( FormalParameters ) { GeneratorBody }
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/generators/dstr-dflt-
|
|||
name: generator function expression (default parameter)
|
||||
esid: sec-generator-function-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.4.14
|
||||
features: [destructuring-binding, default-parameters]
|
||||
features: [generators, destructuring-binding, default-parameters]
|
||||
info: |
|
||||
GeneratorExpression : function * ( FormalParameters ) { GeneratorBody }
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/generators/dstr-
|
|||
name: generator function expression
|
||||
esid: sec-generator-function-definitions-runtime-semantics-evaluation
|
||||
es6id: 14.4.14
|
||||
features: [destructuring-binding]
|
||||
features: [generators, destructuring-binding]
|
||||
info: |
|
||||
GeneratorExpression : function * ( FormalParameters ) { GeneratorBody }
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/object/dstr-gen-meth-dflt-
|
|||
name: generator method (default parameter)
|
||||
esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation
|
||||
es6id: 14.4.13
|
||||
features: [destructuring-binding, default-parameters]
|
||||
features: [generators, destructuring-binding, default-parameters]
|
||||
info: |
|
||||
GeneratorMethod :
|
||||
* PropertyName ( StrictFormalParameters ) { GeneratorBody }
|
||||
|
|
|
@ -5,7 +5,7 @@ path: language/expressions/object/dstr-gen-meth-
|
|||
name: generator method
|
||||
esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation
|
||||
es6id: 14.4.13
|
||||
features: [destructuring-binding]
|
||||
features: [generators, destructuring-binding]
|
||||
info: |
|
||||
GeneratorMethod :
|
||||
* PropertyName ( StrictFormalParameters ) { GeneratorBody }
|
||||
|
|
|
@ -16,6 +16,7 @@ info: |
|
|||
ii. ReturnIfAbrupt(hasNameProperty).
|
||||
iii. If hasNameProperty is false, perform SetFunctionName(v,
|
||||
bindingId).
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
//- elems
|
||||
|
|
|
@ -55,6 +55,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -55,6 +55,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -57,6 +57,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -57,6 +57,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -34,6 +34,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -34,6 +34,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -39,6 +39,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -55,6 +55,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -55,6 +55,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -57,6 +57,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -57,6 +57,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -34,6 +34,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -34,6 +34,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -39,6 +39,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -55,6 +55,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
class C {
|
||||
|
|
|
@ -55,6 +55,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
class C {
|
||||
|
|
|
@ -57,6 +57,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
0, class {
|
||||
|
|
|
@ -57,6 +57,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
0, class {
|
||||
|
|
|
@ -34,6 +34,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
function* f(/*{ params }*/) {
|
||||
|
|
|
@ -34,6 +34,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
0, function*(/*{ params }*/) {
|
||||
|
|
|
@ -39,6 +39,7 @@ info: |
|
|||
b. Let formalStatus be IteratorBindingInitialization for formals with
|
||||
iteratorRecord and env as arguments.
|
||||
[...]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
0, {
|
||||
|
|
|
@ -15,6 +15,7 @@ info: |
|
|||
|
||||
GeneratorMethod :
|
||||
* PropertyName ( UniqueFormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -15,6 +15,7 @@ info: |
|
|||
|
||||
GeneratorMethod :
|
||||
* PropertyName ( UniqueFormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -15,6 +15,7 @@ info: |
|
|||
|
||||
GeneratorMethod :
|
||||
* PropertyName ( UniqueFormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -15,6 +15,7 @@ info: |
|
|||
|
||||
GeneratorMethod :
|
||||
* PropertyName ( UniqueFormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -9,6 +9,7 @@ info: |
|
|||
|
||||
GeneratorDeclaration :
|
||||
function * BindingIdentifier ( FormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -9,6 +9,7 @@ info: |
|
|||
|
||||
GeneratorExpression:
|
||||
function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -9,6 +9,7 @@ info: |
|
|||
|
||||
GeneratorExpression:
|
||||
function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -9,6 +9,7 @@ info: |
|
|||
|
||||
GeneratorMethod[Yield, Await]:
|
||||
* PropertyName[?Yield, ?Await] ( UniqueFormalParameters[+Yield, ~Await] ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -9,6 +9,7 @@ info: |
|
|||
|
||||
GeneratorDeclaration[Yield, Await, Default]:
|
||||
function * BindingIdentifier[?Yield, ?Await] ( FormalParameters[+Yield, ~Await] ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -9,6 +9,7 @@ info: |
|
|||
|
||||
GeneratorExpression:
|
||||
function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -9,6 +9,7 @@ info: |
|
|||
|
||||
GeneratorExpression:
|
||||
function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -9,6 +9,7 @@ info: |
|
|||
|
||||
GeneratorMethod[Yield, Await]:
|
||||
* PropertyName ( UniqueFormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var callCount = 0;
|
||||
|
|
|
@ -15,6 +15,7 @@ info: |
|
|||
|
||||
GeneratorMethod :
|
||||
* PropertyName ( UniqueFormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
class C { *gen() {
|
||||
|
|
|
@ -15,6 +15,7 @@ info: |
|
|||
|
||||
GeneratorMethod :
|
||||
* PropertyName ( UniqueFormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
class C {static *gen() {
|
||||
|
|
|
@ -15,6 +15,7 @@ info: |
|
|||
|
||||
GeneratorMethod :
|
||||
* PropertyName ( UniqueFormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var C = class {*gen() {
|
||||
|
|
|
@ -15,6 +15,7 @@ info: |
|
|||
|
||||
GeneratorMethod :
|
||||
* PropertyName ( UniqueFormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var C = class { static *gen() {
|
||||
|
|
|
@ -9,6 +9,7 @@ info: |
|
|||
|
||||
GeneratorDeclaration :
|
||||
function * BindingIdentifier ( FormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
function *gen() {
|
||||
|
|
|
@ -9,6 +9,7 @@ info: |
|
|||
|
||||
GeneratorExpression:
|
||||
function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var gen = function *g() {
|
||||
|
|
|
@ -9,6 +9,7 @@ info: |
|
|||
|
||||
GeneratorExpression:
|
||||
function * BindingIdentifier opt ( FormalParameters ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var gen = function *() {
|
||||
|
|
|
@ -9,6 +9,7 @@ info: |
|
|||
|
||||
GeneratorMethod[Yield, Await]:
|
||||
* PropertyName[?Yield, ?Await] ( UniqueFormalParameters[+Yield, ~Await] ) { GeneratorBody }
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var obj = {
|
||||
|
|
|
@ -12,6 +12,7 @@ info: |
|
|||
2. Let spreadRef be the result of evaluating AssignmentExpression.
|
||||
3. Let iterator be GetIterator(GetValue(spreadRef) ).
|
||||
4. ReturnIfAbrupt(iterator).
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
//- error
|
||||
|
|
|
@ -7,6 +7,7 @@ description: Object extensibility
|
|||
info: >
|
||||
The value of the [[Extensible]] internal slot of the GeneratorFunction
|
||||
constructor is true.
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
|
||||
|
|
|
@ -5,6 +5,7 @@ es6id: 25.2
|
|||
description: >
|
||||
Generator function instances are correctly reported as instances of the
|
||||
GeneratorFunction intrinsic.
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
|
||||
|
|
|
@ -18,6 +18,7 @@ info: |
|
|||
b. Perform DefinePropertyOrThrow(F, "prototype", PropertyDescriptor{[[Value]]: prototype,
|
||||
[[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: false}).
|
||||
...
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
|
||||
|
|
|
@ -22,6 +22,7 @@ info: |
|
|||
false, [[Configurable]]: true}).
|
||||
[...]
|
||||
includes: [propertyHelper.js]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
|
||||
|
|
|
@ -14,6 +14,7 @@ info: >
|
|||
[...]
|
||||
29. Perform SetFunctionName(F, "anonymous").
|
||||
includes: [propertyHelper.js]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
|
||||
|
|
|
@ -18,6 +18,7 @@ info: |
|
|||
[[Enumerable]]: false, [[Configurable]]: false}).
|
||||
[...]
|
||||
includes: [propertyHelper.js]
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
|
||||
|
|
|
@ -14,6 +14,7 @@ info: |
|
|||
20. If kind is "generator", then
|
||||
a. If parameters Contains YieldExpression is true, throw a SyntaxError
|
||||
exception.
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
|
||||
|
|
|
@ -5,6 +5,7 @@ es6id: 25.2
|
|||
description: >
|
||||
When invoked via the constructor invocation pattern without arguments, the
|
||||
GeneratorFunction intrinsic returns a valid generator with an empty body.
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
|
||||
|
|
|
@ -7,6 +7,7 @@ description: >
|
|||
the GeneratorFunction intrinsic creates a valid generator whose body is the
|
||||
last argument evaluated as source code and whose formal parameters are
|
||||
defined by the preceeding arguments.
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
|
||||
|
|
|
@ -5,6 +5,7 @@ es6id: 25.2
|
|||
description: >
|
||||
When invoked via the function invocation pattern without arguments, the
|
||||
GeneratorFunction intrinsic returns a valid generator with an empty body.
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
|
||||
|
|
|
@ -6,6 +6,7 @@ description: >
|
|||
When invoked via the function invocation pattern with a single argument,
|
||||
the GeneratorFunction intrinsic creates a valid generator whose body is the
|
||||
first argument evaluated as source code.
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue