Add missing generators flags

This commit is contained in:
Leo Balter 2017-10-26 17:05:18 -04:00
parent e38587ec2c
commit f8f5a7a1e7
No known key found for this signature in database
GPG Key ID: 3151533059133F60
78 changed files with 82 additions and 18 deletions

View File

@ -8,6 +8,7 @@ es6id: B.1.4
description: >
"ControlLetter :: RUSSIAN ALPHABET is incorrect"
Instead, fall back to semantics to match literal "\\c"
features: [generators]
---*/
function* invalidControls() {

View File

@ -10,6 +10,7 @@ info: >
The production ClassAtomNoDash :: `\` evaluates as follows:
1. Return the CharSet containing the single character `\`.
features: [generators]
---*/
function* invalidControls() {

View File

@ -4,6 +4,7 @@
/*---
esid: sec-createdynamicfunction
description: Function.prototype.toString on a generator function created with the GeneratorFunction constructor
features: [generators]
---*/
let GeneratorFunction = Object.getPrototypeOf(function*(){}).constructor;

View File

@ -20,6 +20,7 @@ info: >
c. If fnDefinable is false, throw TypeError exception.
...
flags: [noStrict]
features: [generators]
---*/
var error;

View File

@ -6,6 +6,7 @@ author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
Await in a generator is an identifier
features: [generators]
---*/
function* foo(await) { yield await; };

View File

@ -6,6 +6,7 @@ author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
Await is allowed as an identifier in generator functions nested in async functions
features: [generators]
---*/
var await;

View File

@ -26,7 +26,7 @@ info: |
2. If HasInitializer of FormalsList is true or HasInitializer of
FormalParameter is true, return count.
3. Return count+1.
features: [default-parameters]
features: [generators, default-parameters]
includes: [propertyHelper.js]
---*/

View File

@ -4,7 +4,7 @@
description: Referencing the arguments object from a default parameter (class expression method)
esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16
features: [default-parameters]
features: [generators, default-parameters]
info: |
ClassExpression : class BindingIdentifieropt ClassTail

View File

@ -4,7 +4,7 @@
description: Referencing the arguments object from a default parameter (class expression method)
esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16
features: [default-parameters]
features: [generators, default-parameters]
info: |
ClassExpression : class BindingIdentifieropt ClassTail

View File

@ -4,7 +4,7 @@
description: Referencing the arguments object from a default parameter (static class expression generator method)
esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16
features: [default-parameters]
features: [generators, default-parameters]
info: |
ClassExpression : class BindingIdentifieropt ClassTail
@ -67,7 +67,7 @@ info: |
FormalsList using iteratorRecord and environment as the arguments.
2. ReturnIfAbrupt(status).
3. Return the result of performing IteratorBindingInitialization for
FormalParameter using iteratorRecord and environment as the arguments.
FormalParameter using iteratorRecord and environment as the arguments.
---*/
var callCount = 0;

View File

@ -4,7 +4,7 @@
description: Referencing the arguments object from a default parameter (static class expression generator method)
esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16
features: [default-parameters]
features: [generators, default-parameters]
info: |
ClassExpression : class BindingIdentifieropt ClassTail

View File

@ -17,6 +17,7 @@ info: |
d. Set the VariableEnvironment of calleeContext to varEnv.
e. Let instantiatedVarNames be a new empty List.
[...]
features: [generators]
---*/
var probe;

View File

@ -18,6 +18,7 @@ info: |
d. Set the VariableEnvironment of calleeContext to varEnv.
e. Let instantiatedVarNames be a new empty List.
[...]
features: [generators]
---*/
var x = 'outside';

View File

@ -17,6 +17,7 @@ info: |
d. Set the VariableEnvironment of calleeContext to varEnv.
e. Let instantiatedVarNames be a new empty List.
[...]
features: [generators]
---*/
var probe;

View File

@ -18,6 +18,7 @@ info: |
d. Set the VariableEnvironment of calleeContext to varEnv.
e. Let instantiatedVarNames be a new empty List.
[...]
features: [generators]
---*/
var x = 'outside';

View File

@ -4,6 +4,7 @@
es6id: 12.2.5
description: >
super method calls in object literal concise generator
features: [generators]
---*/
var proto = {
method() {

View File

@ -26,7 +26,7 @@ info: |
2. If HasInitializer of FormalsList is true or HasInitializer of
FormalParameter is true, return count.
3. Return count+1.
features: [default-parameters]
features: [generators, default-parameters]
includes: [propertyHelper.js]
---*/

View File

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

View File

@ -4,7 +4,7 @@
description: Referencing the arguments object from a default parameter (generator method)
esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation
es6id: 14.4.13
features: [default-parameters]
features: [generators, default-parameters]
info: |
GeneratorMethod :
* PropertyName ( StrictFormalParameters ) { GeneratorBody }
@ -49,7 +49,7 @@ info: |
FormalsList using iteratorRecord and environment as the arguments.
2. ReturnIfAbrupt(status).
3. Return the result of performing IteratorBindingInitialization for
FormalParameter using iteratorRecord and environment as the arguments.
FormalParameter using iteratorRecord and environment as the arguments.
---*/
var callCount = 0;

View File

@ -4,7 +4,7 @@
description: Referencing the arguments object from a default parameter (generator method)
esid: sec-generator-function-definitions-runtime-semantics-propertydefinitionevaluation
es6id: 14.4.13
features: [default-parameters]
features: [generators, default-parameters]
info: |
GeneratorMethod :
* PropertyName ( StrictFormalParameters ) { GeneratorBody }

View File

@ -40,7 +40,7 @@ info: |
like-named lexical declaration.
iii. Let thisLex be thisLex's outer environment reference.
flags: [noStrict]
features: [let]
features: [generators, let]
---*/
var o = {

View File

@ -15,6 +15,7 @@ info: |
11. Set the LexicalEnvironment of currentContext to originalEnv.
[...]
flags: [noStrict]
features: [generators]
---*/
var x = 'outside';

View File

@ -16,6 +16,7 @@ info: |
11. Set the LexicalEnvironment of currentContext to originalEnv.
[...]
flags: [noStrict]
features: [generators]
---*/
var x = 'outside';

View File

@ -21,6 +21,7 @@ info: |
11. Set the LexicalEnvironment of currentContext to originalEnv.
[...]
flags: [noStrict]
features: [generators]
---*/
var x = 'outside';

View File

@ -21,6 +21,7 @@ info: |
11. Set the LexicalEnvironment of currentContext to originalEnv.
[...]
flags: [noStrict]
features: [generators]
---*/
var x = 'outside';

View File

@ -17,6 +17,7 @@ info: |
d. Set the VariableEnvironment of calleeContext to varEnv.
e. Let instantiatedVarNames be a new empty List.
[...]
features: [generators]
---*/
var probe;

View File

@ -18,6 +18,7 @@ info: |
d. Set the VariableEnvironment of calleeContext to varEnv.
e. Let instantiatedVarNames be a new empty List.
[...]
features: [generators]
---*/
var x = 'outside';

View File

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

View File

@ -23,6 +23,7 @@ info: |
5. Perform ? InitializeBoundName("*default*", value, env).
[...]
flags: [module]
features: [generators]
---*/
export default (function* () { return 24601; });

View File

@ -23,6 +23,7 @@ info: |
5. Perform ? InitializeBoundName("*default*", value, env).
[...]
flags: [module]
features: [generators]
---*/
export default (function* gName() { return 88; });

View File

@ -6,6 +6,7 @@ description: >
need to be terminated with a semicolon or newline
esid: sec-moduleevaluation
flags: [module]
features: [generators]
---*/
var count = 0;

View File

@ -6,6 +6,7 @@ description: >
be terminated with a semicolon or newline
esid: sec-moduleevaluation
flags: [module]
features: [generators]
---*/
var count = 0;

View File

@ -6,6 +6,7 @@ description: >
with a semicolon or newline
esid: sec-moduleevaluation
flags: [module]
features: [generators]
---*/
var count = 0;

View File

@ -38,6 +38,7 @@ info: |
and N2 as its target binding and record that the binding is initialized.
6. Return NormalCompletion(empty).
flags: [module]
features: [generators]
---*/
assert.sameValue(

View File

@ -43,6 +43,7 @@ info: |
function * BindingIdentifier[?Yield] ( FormalParameters[Yield] ) { GeneratorBody }
[+Default] function * ( FormalParameters[Yield] ) { GeneratorBody }
flags: [module]
features: [generators]
---*/
assert.sameValue(g().next().value, 23, 'generator function value is hoisted');

View File

@ -43,6 +43,7 @@ info: |
function * BindingIdentifier[?Yield] ( FormalParameters[Yield] ) { GeneratorBody }
[+Default] function * ( FormalParameters[Yield] ) { GeneratorBody }
flags: [module]
features: [generators]
---*/
assert.sameValue(g().next().value, 23, 'generator function value is hoisted');

View File

@ -40,6 +40,7 @@ info: |
and N2 as its target binding and record that the binding is initialized.
6. Return NormalCompletion(empty).
flags: [module]
features: [generators]
---*/
assert.sameValue(

View File

@ -14,6 +14,7 @@ info: |
1. Let env be a new Lexical Environment.
[...]
flags: [module]
features: [generators]
---*/
import './instn-uniq-env-rec-other_FIXTURE.js'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -14,6 +14,7 @@ info: >
6. If hasNameProperty is false, then perform SetFunctionName(value,
className).
includes: [propertyHelper.js]
features: [generators]
---*/
class A {

View File

@ -26,7 +26,7 @@ info: |
2. If HasInitializer of FormalsList is true or HasInitializer of
FormalParameter is true, return count.
3. Return count+1.
features: [default-parameters]
features: [generators, default-parameters]
includes: [propertyHelper.js]
---*/

View File

@ -4,7 +4,7 @@
description: Referencing the arguments object from a default parameter (class expression method)
esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16
features: [default-parameters]
features: [generators, default-parameters]
info: |
ClassDeclaration : class BindingIdentifier ClassTail
@ -65,7 +65,7 @@ info: |
FormalsList using iteratorRecord and environment as the arguments.
2. ReturnIfAbrupt(status).
3. Return the result of performing IteratorBindingInitialization for
FormalParameter using iteratorRecord and environment as the arguments.
FormalParameter using iteratorRecord and environment as the arguments.
---*/
var callCount = 0;

View File

@ -4,7 +4,7 @@
description: Referencing the arguments object from a default parameter (class expression method)
esid: sec-class-definitions-runtime-semantics-evaluation
es6id: 14.5.16
features: [default-parameters]
features: [generators, default-parameters]
info: |
ClassDeclaration : class BindingIdentifier ClassTail

View File

@ -4,7 +4,7 @@
description: Referencing the arguments object from a default parameter (static class expression generator method)
esid: sec-runtime-semantics-bindingclassdeclarationevaluation
es6id: 14.5.15
features: [default-parameters]
features: [generators, default-parameters]
info: |
ClassDeclaration : class BindingIdentifier ClassTail
@ -65,7 +65,7 @@ info: |
FormalsList using iteratorRecord and environment as the arguments.
2. ReturnIfAbrupt(status).
3. Return the result of performing IteratorBindingInitialization for
FormalParameter using iteratorRecord and environment as the arguments.
FormalParameter using iteratorRecord and environment as the arguments.
---*/
var callCount = 0;

View File

@ -4,7 +4,7 @@
description: Referencing the arguments object from a default parameter (static class expression generator method)
esid: sec-runtime-semantics-bindingclassdeclarationevaluation
es6id: 14.5.15
features: [default-parameters]
features: [generators, default-parameters]
info: |
ClassDeclaration : class BindingIdentifier ClassTail

View File

@ -17,6 +17,7 @@ info: |
d. Set the VariableEnvironment of calleeContext to varEnv.
e. Let instantiatedVarNames be a new empty List.
[...]
features: [generators]
---*/
var probe;

View File

@ -18,6 +18,7 @@ info: |
d. Set the VariableEnvironment of calleeContext to varEnv.
e. Let instantiatedVarNames be a new empty List.
[...]
features: [generators]
---*/
var x = 'outside';

View File

@ -17,6 +17,7 @@ info: |
d. Set the VariableEnvironment of calleeContext to varEnv.
e. Let instantiatedVarNames be a new empty List.
[...]
features: [generators]
---*/
var probe;

View File

@ -18,6 +18,7 @@ info: |
d. Set the VariableEnvironment of calleeContext to varEnv.
e. Let instantiatedVarNames be a new empty List.
[...]
features: [generators]
---*/
var x = 'outside';

View File

@ -6,6 +6,7 @@ description: >
Runtime Semantics: ClassDefinitionEvaluation
If superclass has a [[FunctionKind]] internal slot whose value is "generator", throw a TypeError exception.
features: [generators]
---*/
function * G() {}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,6 +4,7 @@
es6id: 13.6.4.13
description: >
Nested statements should operate independently.
features: [generators]
---*/
function* values() {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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