Merge pull request #1038 from leobalter/fix-features-flags

Fix features flags
This commit is contained in:
Rick Waldron 2017-05-16 17:34:32 -04:00 committed by GitHub
commit a9fa392c11
70 changed files with 126 additions and 70 deletions

View File

@ -13,7 +13,7 @@ info: |
negative:
phase: early
type: SyntaxError
flags: [async-functions]
features: [async-functions]
---*/
{ async function f() {} /*{ body }*/ }

View File

@ -13,7 +13,7 @@ info: |
negative:
phase: early
type: SyntaxError
flags: [async-iteration]
features: [async-iteration]
---*/
{ async function* f() {} /*{ body }*/ }

View File

@ -13,7 +13,7 @@ info: |
negative:
phase: early
type: SyntaxError
flags: [async-functions]
features: [async-functions]
---*/
switch (0) { case 1: async function f() {} default: /*{ body }*/ }

View File

@ -13,7 +13,7 @@ info: |
negative:
phase: early
type: SyntaxError
flags: [async-iteration]
features: [async-iteration]
---*/
switch (0) { case 1: async function* f() {} default: /*{ body }*/ }

View File

@ -13,7 +13,7 @@ info: |
negative:
phase: early
type: SyntaxError
flags: [async-functions]
features: [async-functions]
---*/
{ async function f() {} /*{ body }*/ }

View File

@ -13,7 +13,7 @@ info: |
negative:
phase: early
type: SyntaxError
flags: [async-iteration]
features: [async-iteration]
---*/
{ async function* f() {} /*{ body }*/ }

View File

@ -13,7 +13,7 @@ info: |
negative:
phase: early
type: SyntaxError
flags: [async-functions]
features: [async-functions]
---*/
switch (0) { case 1: async function f() {} default: /*{ body }*/ }

View File

@ -13,7 +13,7 @@ info: |
negative:
phase: early
type: SyntaxError
flags: [async-iteration]
features: [async-iteration]
---*/
switch (0) { case 1: async function* f() {} default: /*{ body }*/ }

View File

@ -5,7 +5,7 @@
desc: >
redeclaration with AsyncFunctionDeclaration
template: redeclare
flags: [async-functions]
features: [async-functions]
---*/
//- body

View File

@ -5,7 +5,7 @@
desc: >
redeclaration with AsyncGeneratorDeclaration
template: redeclare
flags: [async-iteration]
features: [async-iteration]
---*/
//- body

View File

@ -13,7 +13,7 @@ info: |
negative:
phase: early
type: SyntaxError
flags: [async-functions]
features: [async-functions]
---*/
{ async function f() {} /*{ body }*/ }

View File

@ -13,7 +13,7 @@ info: |
negative:
phase: early
type: SyntaxError
flags: [async-iteration]
features: [async-iteration]
---*/
{ async function* f() {} /*{ body }*/ }

View File

@ -13,7 +13,7 @@ info: |
negative:
phase: early
type: SyntaxError
flags: [async-functions]
features: [async-functions]
---*/
switch (0) { case 1: async function f() {} default: /*{ body }*/ }

View File

@ -13,7 +13,7 @@ info: |
negative:
phase: early
type: SyntaxError
flags: [async-iteration]
features: [async-iteration]
---*/
switch (0) { case 1: async function* f() {} default: /*{ body }*/ }

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (AsyncFunctionDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (AsyncFunctionDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-iteration, async-functions]
features: [async-iteration, async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with ClassDeclaration (AsyncFunctionDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with const-LexicalDeclaration (AsyncFunctionDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with FunctionDeclaration (AsyncFunctionDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with GeneratorDeclaration (AsyncFunctionDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with let-LexicalDeclaration (AsyncFunctionDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with VariableDeclaration (AsyncFunctionDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (AsyncGeneratorDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-functions, async-iteration]
features: [async-functions, async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (AsyncGeneratorDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with ClassDeclaration (AsyncGeneratorDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with const-LexicalDeclaration (AsyncGeneratorDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with FunctionDeclaration (AsyncGeneratorDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with GeneratorDeclaration (AsyncGeneratorDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with let-LexicalDeclaration (AsyncGeneratorDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with VariableDeclaration (AsyncGeneratorDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (ClassDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (ClassDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (LexicalDeclaration (const) in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (LexicalDeclaration (const) in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (FunctionDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (FunctionDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (GeneratorDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (GeneratorDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (LexicalDeclaration (let) in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (LexicalDeclaration (let) in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (VariableDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (VariableDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (AsyncFunctionDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (AsyncFunctionDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-iteration, async-functions]
features: [async-iteration, async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with ClassDeclaration (AsyncFunctionDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with const-LexicalDeclaration (AsyncFunctionDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with FunctionDeclaration (AsyncFunctionDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with GeneratorDeclaration (AsyncFunctionDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with let-LexicalDeclaration (AsyncFunctionDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with VariableDeclaration (AsyncFunctionDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (AsyncGeneratorDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-functions, async-iteration]
features: [async-functions, async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (AsyncGeneratorDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with ClassDeclaration (AsyncGeneratorDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with const-LexicalDeclaration (AsyncGeneratorDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with FunctionDeclaration (AsyncGeneratorDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with GeneratorDeclaration (AsyncGeneratorDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with let-LexicalDeclaration (AsyncGeneratorDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with VariableDeclaration (AsyncGeneratorDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (ClassDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (ClassDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (LexicalDeclaration (const) in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (LexicalDeclaration (const) in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (FunctionDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (FunctionDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (GeneratorDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (GeneratorDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (LexicalDeclaration (let) in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (LexicalDeclaration (let) in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncFunctionDeclaration (VariableDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-functions]
features: [async-functions]
flags: [generated]
negative:
phase: early
type: SyntaxError

View File

@ -4,7 +4,8 @@
/*---
description: redeclaration with AsyncGeneratorDeclaration (VariableDeclaration in SwitchStatement)
esid: sec-switch-statement-static-semantics-early-errors
flags: [generated, async-iteration]
features: [async-iteration]
flags: [generated]
negative:
phase: early
type: SyntaxError