mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Remove faulty throw
statements
The `throw` statements that were recently inserted into these tests have an observable impact on the parsing behavior: they causes the `"use strict"` token sequence to be interpreted as a string literal instead of a directive prolog, which in turn effects how the tests are interpreted. Remove the new `throw` statements from these tests and rely on previously-existing statements that serve the same purpose without impacting program strictness.
This commit is contained in:
parent
af8ec67363
commit
3269aea2ab
@ -7,3 +7,8 @@
|
||||
# test/language/made-up-file.js FRONTMATTER LICENSE
|
||||
#
|
||||
# Note that lines prefixed with the "hash" symbol (#) will be ignored.
|
||||
test/language/directive-prologue/10.1.1-5gs.js NEGATIVE
|
||||
test/language/directive-prologue/10.1.1-2gs.js NEGATIVE
|
||||
test/language/directive-prologue/14.1-5gs.js NEGATIVE
|
||||
test/language/directive-prologue/14.1-4gs.js NEGATIVE
|
||||
test/language/directive-prologue/10.1.1-8gs.js NEGATIVE
|
||||
|
@ -12,8 +12,6 @@ negative:
|
||||
flags: [raw]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
"use strict"
|
||||
throw new Error("This code should not execute");
|
||||
var public = 1;
|
||||
|
@ -12,8 +12,6 @@ negative:
|
||||
flags: [raw]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
"use strict";
|
||||
throw new Error("This code should not execute");
|
||||
var public = 1;
|
||||
|
@ -12,8 +12,6 @@ negative:
|
||||
flags: [raw]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
"use strict";
|
||||
"use strict";
|
||||
var public = 1;
|
||||
|
@ -12,8 +12,6 @@ negative:
|
||||
flags: [raw]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
"use strict";
|
||||
throw new Error("This code should not execute");
|
||||
eval = 42;
|
||||
|
@ -12,8 +12,6 @@ negative:
|
||||
flags: [raw]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
"a";
|
||||
"use strict";
|
||||
"c";
|
||||
|
Loading…
x
Reference in New Issue
Block a user