mirror of https://github.com/tc39/test262.git
Force "early error" tests to fail if evaluated
This pattern makes expectations more explicit by making test files more literal.
This commit is contained in:
parent
e5ffc904d6
commit
81d00def42
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
var \u0061wait;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
var await;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
void \u0061wait;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
void await;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
\u0061wait: ;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
await: ;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
var \u0061wait;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
var await;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
void \u0061wait;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
void await;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
\u0061wait: ;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
await: ;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
var yi\u0065ld;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
var yield;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
void yi\u0065ld;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
void yield;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
yi\u0065ld: ;
|
||||
|
|
|
@ -17,5 +17,7 @@ negative:
|
|||
template: syntax
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
yield: ;
|
||||
|
|
|
@ -19,6 +19,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
return {
|
||||
...(function() {
|
||||
|
|
|
@ -12,6 +12,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- body
|
||||
(function() {
|
||||
var yield;
|
||||
|
|
|
@ -16,4 +16,6 @@ negative:
|
|||
features: [async-functions]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ async function f() {} /*{ body }*/ }
|
||||
|
|
|
@ -16,4 +16,6 @@ negative:
|
|||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ async function* f() {} /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ class f {} /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ const f = 0; /*{ body }*/ }
|
||||
|
|
|
@ -16,4 +16,6 @@ negative:
|
|||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ function f() {} /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ function* f() {} /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ let f; /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ var f; /*{ body }*/ }
|
||||
|
|
|
@ -16,4 +16,6 @@ negative:
|
|||
features: [async-functions]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: async function f() {} default: /*{ body }*/ }
|
||||
|
|
|
@ -16,4 +16,6 @@ negative:
|
|||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: async function* f() {} default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: class f {} default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: const f = 0; default: /*{ body }*/ }
|
||||
|
|
|
@ -16,4 +16,6 @@ negative:
|
|||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: function f() {} default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: function* f() {} default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: let f; default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: var f; default: /*{ body }*/ }
|
||||
|
|
|
@ -16,4 +16,6 @@ negative:
|
|||
features: [async-functions]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ async function f() {} /*{ body }*/ }
|
||||
|
|
|
@ -16,4 +16,6 @@ negative:
|
|||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ async function* f() {} /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ class f {} /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ const f = 0; /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ function f() {} /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ function* f() {} /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ let f; /*{ body }*/ }
|
||||
|
|
|
@ -16,4 +16,6 @@ negative:
|
|||
features: [async-functions]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: async function f() {} default: /*{ body }*/ }
|
||||
|
|
|
@ -16,4 +16,6 @@ negative:
|
|||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: async function* f() {} default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: class f {} default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: const f = 0; default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: function f() {} default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: function* f() {} default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: let f; default: /*{ body }*/ }
|
||||
|
|
|
@ -16,4 +16,6 @@ negative:
|
|||
features: [async-functions]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ async function f() {} /*{ body }*/ }
|
||||
|
|
|
@ -16,4 +16,6 @@ negative:
|
|||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ async function* f() {} /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ class f {} /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ const f = 0; /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ function f() {} /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ function* f() {} /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ let f; /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
{ var f; /*{ body }*/ }
|
||||
|
|
|
@ -16,4 +16,6 @@ negative:
|
|||
features: [async-functions]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: async function f() {} default: /*{ body }*/ }
|
||||
|
|
|
@ -16,4 +16,6 @@ negative:
|
|||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: async function* f() {} default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: class f {} default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: const f = 0; default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: function f() {} default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: function* f() {} default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: let f; default: /*{ body }*/ }
|
||||
|
|
|
@ -15,4 +15,6 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
switch (0) { case 1: var f; default: /*{ body }*/ }
|
||||
|
|
|
@ -13,6 +13,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[ x = yield ]
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[[(x, y)]]
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[[x[yield]]]
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[{ get x() {} }]
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[{ x = yield }]
|
||||
//- vals
|
||||
|
|
|
@ -15,6 +15,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[arguments]
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[ x[yield] ]
|
||||
//- vals
|
||||
|
|
|
@ -13,6 +13,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[ x = yield ]
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[[(x, y)]]
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[[x[yield]]]
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[{ get x() {} }]
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[{ x = yield }]
|
||||
//- vals
|
||||
|
|
|
@ -15,6 +15,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[arguments]
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[ x[yield] ]
|
||||
//- vals
|
||||
|
|
|
@ -12,6 +12,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[...x, y]
|
||||
//- vals
|
||||
|
|
|
@ -12,6 +12,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[...x,]
|
||||
//- vals
|
||||
|
|
|
@ -12,6 +12,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[...x, ...y]
|
||||
//- vals
|
||||
|
|
|
@ -12,6 +12,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[...x,]
|
||||
//- vals
|
||||
|
|
|
@ -12,6 +12,7 @@ negative:
|
|||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
var x;
|
||||
//- elems
|
||||
[...x = 1]
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[...[(x, y)]]
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[...[x[yield]]]
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[...{ get x() {} }]
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
[...{ x = yield }]
|
||||
//- vals
|
||||
|
|
|
@ -15,6 +15,7 @@ negative:
|
|||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
var x = {};
|
||||
//- elems
|
||||
[...x[yield]]
|
||||
|
|
|
@ -15,6 +15,7 @@ negative:
|
|||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
(function*() {
|
||||
//- elems
|
||||
{ yield }
|
||||
|
|
|
@ -13,6 +13,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
{ yield }
|
||||
//- vals
|
||||
|
|
|
@ -13,6 +13,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
{ eval = 0 }
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
{ x = yield }
|
||||
//- vals
|
||||
|
|
|
@ -13,6 +13,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
{ eval }
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
{ x: x = yield }
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
{ x: x[yield] }
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
{ x: [(x, y)] }
|
||||
//- vals
|
||||
|
|
|
@ -14,6 +14,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
{ x: [x = yield] }
|
||||
//- vals
|
||||
|
|
|
@ -15,6 +15,8 @@ negative:
|
|||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
//- elems
|
||||
{ x: { get x() {} } }
|
||||
//- vals
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue