Reformat negative SyntaxError tests (runtime)

These tests specifically concern error produced from the global scope,
precluding the use of the `assert.throws` helper function.
This commit is contained in:
Mike Pennisi 2016-05-28 15:42:19 -04:00
parent d5a3a962b2
commit 203b234fc0
9 changed files with 27 additions and 9 deletions

View File

@ -13,7 +13,9 @@ info: |
2. NOTE: eval will not create a global var declaration that would 2. NOTE: eval will not create a global var declaration that would
be shadowed by a global lexical declaration. be shadowed by a global lexical declaration.
[...] [...]
negative: SyntaxError negative:
phase: runtime
type: SyntaxError
flags: [noStrict] flags: [noStrict]
features: [let] features: [let]
---*/ ---*/

View File

@ -5,7 +5,9 @@ info: If the parse fails, throw a SyntaxError exception (but see also clause 16)
esid: sec-performeval esid: sec-performeval
es5id: 15.1.2.1_A2_T2 es5id: 15.1.2.1_A2_T2
description: Checking if execution of "(0,eval)("x = 1; x\u000A++")" fails description: Checking if execution of "(0,eval)("x = 1; x\u000A++")" fails
negative: SyntaxError negative:
phase: runtime
type: SyntaxError
---*/ ---*/
var x; var x;

View File

@ -24,7 +24,9 @@ info: |
2. If Type(V) is not Reference, return V. 2. If Type(V) is not Reference, return V.
3. Let base be GetBase(V). 3. Let base be GetBase(V).
4. If IsUnresolvableReference(V) is true, throw a ReferenceError exception. 4. If IsUnresolvableReference(V) is true, throw a ReferenceError exception.
negative: ReferenceError negative:
phase: runtime
type: ReferenceError
flags: [module] flags: [module]
---*/ ---*/

View File

@ -29,7 +29,9 @@ info: |
{ } { }
{ ExportsList } { ExportsList }
{ ExportsList , } { ExportsList , }
negative: ReferenceError negative:
phase: early
type: ReferenceError
flags: [module] flags: [module]
---*/ ---*/

View File

@ -35,7 +35,9 @@ info: |
{ } { }
{ ImportsList } { ImportsList }
{ ImportsList , } { ImportsList , }
negative: ReferenceError negative:
phase: early
type: ReferenceError
flags: [module] flags: [module]
---*/ ---*/

View File

@ -10,7 +10,9 @@ info: |
[...] [...]
b. Let requiredModule be ? HostResolveImportedModule(module, required). b. Let requiredModule be ? HostResolveImportedModule(module, required).
[...] [...]
negative: ReferenceError negative:
phase: early
type: ReferenceError
flags: [module] flags: [module]
---*/ ---*/

View File

@ -3,7 +3,9 @@
/*--- /*---
description: Module dependencies are resolved following a depth-first strategy description: Module dependencies are resolved following a depth-first strategy
esid: sec-moduledeclarationinstantiation esid: sec-moduledeclarationinstantiation
negative: ReferenceError negative:
phase: early
type: ReferenceError
flags: [module] flags: [module]
---*/ ---*/

View File

@ -3,7 +3,9 @@
/*--- /*---
description: Modules dependencies are resolved in source text order description: Modules dependencies are resolved in source text order
esid: sec-moduledeclarationinstantiation esid: sec-moduledeclarationinstantiation
negative: ReferenceError negative:
phase: early
type: ReferenceError
flags: [module] flags: [module]
---*/ ---*/

View File

@ -3,7 +3,9 @@
/*--- /*---
description: Early ReferenceError resulting from module parsing description: Early ReferenceError resulting from module parsing
esid: sec-parsemodule esid: sec-parsemodule
negative: ReferenceError negative:
phase: early
type: ReferenceError
info: | info: |
[...] [...]
2. Parse sourceText using Module as the goal symbol and analyze the parse 2. Parse sourceText using Module as the goal symbol and analyze the parse