Skip to content
Snippets Groups Projects
Commit 203b234f authored by Mike Pennisi's avatar Mike Pennisi
Browse files

Reformat negative SyntaxError tests (runtime)

These tests specifically concern error produced from the global scope,
precluding the use of the `assert.throws` helper function.
parent d5a3a962
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,9 @@ info: | ...@@ -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]
---*/ ---*/
......
...@@ -5,7 +5,9 @@ info: If the parse fails, throw a SyntaxError exception (but see also clause 16) ...@@ -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;
......
...@@ -24,7 +24,9 @@ info: | ...@@ -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]
---*/ ---*/
......
...@@ -29,7 +29,9 @@ info: | ...@@ -29,7 +29,9 @@ info: |
{ } { }
{ ExportsList } { ExportsList }
{ ExportsList , } { ExportsList , }
negative: ReferenceError negative:
phase: early
type: ReferenceError
flags: [module] flags: [module]
---*/ ---*/
......
...@@ -35,7 +35,9 @@ info: | ...@@ -35,7 +35,9 @@ info: |
{ } { }
{ ImportsList } { ImportsList }
{ ImportsList , } { ImportsList , }
negative: ReferenceError negative:
phase: early
type: ReferenceError
flags: [module] flags: [module]
---*/ ---*/
......
...@@ -10,7 +10,9 @@ info: | ...@@ -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]
---*/ ---*/
......
...@@ -3,7 +3,9 @@ ...@@ -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]
---*/ ---*/
......
...@@ -3,7 +3,9 @@ ...@@ -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]
---*/ ---*/
......
...@@ -3,7 +3,9 @@ ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment