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
characteristics of the function definition, its arguments object is either an ordinary object
or an arguments exotic object.
features: [generators]
---*/
var callCount = 0;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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