mirror of https://github.com/tc39/test262.git
Add feature flags for various tests
This commit is contained in:
parent
2878106ca0
commit
6330eccfc4
|
@ -15,6 +15,7 @@ info: |
|
|||
4. Let excludedNames be a new empty List.
|
||||
5. Return CopyDataProperties(object, fromValue, excludedNames).
|
||||
|
||||
features: [object-spread]
|
||||
---*/
|
||||
|
||||
//- error
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
desc: Object Spread operator results in error when using an unresolvable reference
|
||||
template: error
|
||||
esid: pending
|
||||
features: [object-spread]
|
||||
info: |
|
||||
Pending Runtime Semantics: PropertyDefinitionEvaluation
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*(x = 1) {"use strict"});
|
||||
|
|
|
@ -10,6 +10,7 @@ negative:
|
|||
phase: early
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*(arguments) { });
|
||||
|
|
|
@ -9,6 +9,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function* await() { });
|
||||
|
|
|
@ -11,6 +11,7 @@ negative:
|
|||
phase: early
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function* arguments() { });
|
||||
|
|
|
@ -11,6 +11,7 @@ negative:
|
|||
phase: early
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function* eval() { });
|
||||
|
|
|
@ -9,6 +9,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*() { super(); });
|
||||
|
|
|
@ -9,6 +9,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*() { super.prop; });
|
||||
|
|
|
@ -10,6 +10,7 @@ negative:
|
|||
phase: early
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*(eval) { });
|
||||
|
|
|
@ -10,6 +10,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*(a) { const a = 0; });
|
||||
|
|
|
@ -10,6 +10,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*(a) { let a; });
|
||||
|
|
|
@ -9,6 +9,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*(x = await 1) { });
|
||||
|
|
|
@ -10,6 +10,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*(await) { });
|
||||
|
|
|
@ -9,6 +9,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*(a = super()) { });
|
||||
|
|
|
@ -9,6 +9,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*(a = super.prop) { });
|
||||
|
|
|
@ -9,6 +9,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*(x = yield) { });
|
||||
|
|
|
@ -10,6 +10,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*(yield) { });
|
||||
|
|
|
@ -10,6 +10,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*() {
|
||||
|
|
|
@ -10,6 +10,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*() {
|
||||
|
|
|
@ -9,6 +9,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*() { } = 1);
|
||||
|
|
|
@ -9,6 +9,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function* yield() { });
|
||||
|
|
|
@ -9,6 +9,7 @@ description: >
|
|||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
(async function*() {
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: 14.4
|
|||
description: >
|
||||
AwaitExpressions are valid operands to yield expressions.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var iter = (async function*() {
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: 14.4
|
|||
description: >
|
||||
AwaitExpressions are valid operands to yield expressions.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var iter = (async function*() {
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: 14.4
|
|||
description: >
|
||||
AwaitExpressions are valid operands to yield expressions.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var thenable = {
|
||||
|
|
|
@ -8,6 +8,7 @@ description: >
|
|||
`yield` expressions may be used as the right-hand-side of other `yield`
|
||||
expressions.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var g = async function*() {
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: 14.4
|
|||
description: >
|
||||
`yield` is a valid statement within async generator function bodies.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var g1 = async function*() { yield; };
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: 14.4
|
|||
description: >
|
||||
Newlines terminate `yield` expressions.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var g = async function*() {
|
||||
|
|
|
@ -7,6 +7,7 @@ esid: 14.4
|
|||
description: >
|
||||
The right-hand side of a `yield *` expression may appear on a new line.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var g = async function*() {};
|
||||
|
|
|
@ -14,6 +14,7 @@ info: |
|
|||
|
||||
AsyncGeneratorResolve will unwrap Promise values (steps 6-10)
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var g = async function*() {
|
||||
|
|
|
@ -12,6 +12,7 @@ info: |
|
|||
If completion.[[Type]] is return, and generator.[[AsyncGeneratorState]] is
|
||||
"suspendedStart", generator is closed without being resumed.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var g = async function*() {
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
"suspendedYield", generator is resumed and immediately closes the generator
|
||||
and returns completion.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var g = async function*() {
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
"suspendedYield", and generator is resumed within a try-block with an
|
||||
associated finally block, resume execution within finally.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var g = async function*() {
|
||||
|
|
|
@ -14,6 +14,7 @@ info: |
|
|||
"suspendedYield", and generator is resumed within a try-block with an
|
||||
associated finally block, resume execution within finally.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var error = new Error("boop");
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
"suspendedYield", and generator is resumed within a try-block with an
|
||||
associated finally block, resume execution within finally.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var g = async function*() {
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
"suspendedYield", generator is resumed and immediately closes the generator
|
||||
and returns completion.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var g = async function*() {
|
||||
|
|
|
@ -14,6 +14,7 @@ info: |
|
|||
|
||||
AsyncGeneratorReject will not unwrap Promise values
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var g = async function*() {
|
||||
|
|
|
@ -12,6 +12,7 @@ info: |
|
|||
If completion.[[Type]] is throw, and generator.[[AsyncGeneratorState]] is
|
||||
"suspendedStart", generator is closed without being resumed.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var error = new Error('boop');
|
||||
|
|
|
@ -14,6 +14,7 @@ info: |
|
|||
|
||||
AsyncGeneratorReject will not unwrap Promise values
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var g = async function*() {
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
"suspendedYield", and generator is resumed within a try-block with an
|
||||
associated catch block, resume execution within catch-block.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var error = new Error('boop');
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
"suspendedYield", and generator is resumed within a try-block with an
|
||||
associated finally block, resume execution within finally.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
class Err extends Error {};
|
||||
|
|
|
@ -14,6 +14,7 @@ info: |
|
|||
"suspendedYield", and generator is resumed within a try-block with an
|
||||
associated finally block, resume execution within finally.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var error = new Error('boop');
|
||||
|
|
|
@ -13,6 +13,7 @@ info: |
|
|||
"suspendedYield", and generator is resumed within a try-block with an
|
||||
associated finally block, resume execution within finally.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var error = new Error('boop');
|
||||
|
|
|
@ -12,6 +12,7 @@ info: |
|
|||
"suspendedYield", generator is resumed and immediately and
|
||||
closes the generator and returns completion.
|
||||
flags: [async]
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
var error = new Error('boop');
|
||||
|
|
Loading…
Reference in New Issue