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:
Mike Pennisi 2017-04-29 16:31:08 -04:00 committed by Rick Waldron
parent e5ffc904d6
commit 81d00def42
1181 changed files with 2367 additions and 9 deletions

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
var \u0061wait; var \u0061wait;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
var await; var await;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
void \u0061wait; void \u0061wait;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
void await; void await;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
\u0061wait: ; \u0061wait: ;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
await: ; await: ;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
var \u0061wait; var \u0061wait;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
var await; var await;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
void \u0061wait; void \u0061wait;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
void await; void await;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
\u0061wait: ; \u0061wait: ;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
await: ; await: ;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
var yi\u0065ld; var yi\u0065ld;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
var yield; var yield;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
void yi\u0065ld; void yi\u0065ld;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
void yield; void yield;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
yi\u0065ld: ; yi\u0065ld: ;

View File

@ -17,5 +17,7 @@ negative:
template: syntax template: syntax
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
yield: ; yield: ;

View File

@ -19,6 +19,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
return { return {
...(function() { ...(function() {

View File

@ -12,6 +12,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- body //- body
(function() { (function() {
var yield; var yield;

View File

@ -16,4 +16,6 @@ negative:
features: [async-functions] features: [async-functions]
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ async function f() {} /*{ body }*/ } { async function f() {} /*{ body }*/ }

View File

@ -16,4 +16,6 @@ negative:
features: [async-iteration] features: [async-iteration]
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ async function* f() {} /*{ body }*/ } { async function* f() {} /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ class f {} /*{ body }*/ } { class f {} /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ const f = 0; /*{ body }*/ } { const f = 0; /*{ body }*/ }

View File

@ -16,4 +16,6 @@ negative:
flags: [onlyStrict] flags: [onlyStrict]
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ function f() {} /*{ body }*/ } { function f() {} /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ function* f() {} /*{ body }*/ } { function* f() {} /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ let f; /*{ body }*/ } { let f; /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ var f; /*{ body }*/ } { var f; /*{ body }*/ }

View File

@ -16,4 +16,6 @@ negative:
features: [async-functions] features: [async-functions]
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: async function f() {} default: /*{ body }*/ } switch (0) { case 1: async function f() {} default: /*{ body }*/ }

View File

@ -16,4 +16,6 @@ negative:
features: [async-iteration] features: [async-iteration]
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: async function* f() {} default: /*{ body }*/ } switch (0) { case 1: async function* f() {} default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: class f {} default: /*{ body }*/ } switch (0) { case 1: class f {} default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: const f = 0; default: /*{ body }*/ } switch (0) { case 1: const f = 0; default: /*{ body }*/ }

View File

@ -16,4 +16,6 @@ negative:
flags: [onlyStrict] flags: [onlyStrict]
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: function f() {} default: /*{ body }*/ } switch (0) { case 1: function f() {} default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: function* f() {} default: /*{ body }*/ } switch (0) { case 1: function* f() {} default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: let f; default: /*{ body }*/ } switch (0) { case 1: let f; default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: var f; default: /*{ body }*/ } switch (0) { case 1: var f; default: /*{ body }*/ }

View File

@ -16,4 +16,6 @@ negative:
features: [async-functions] features: [async-functions]
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ async function f() {} /*{ body }*/ } { async function f() {} /*{ body }*/ }

View File

@ -16,4 +16,6 @@ negative:
features: [async-iteration] features: [async-iteration]
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ async function* f() {} /*{ body }*/ } { async function* f() {} /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ class f {} /*{ body }*/ } { class f {} /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ const f = 0; /*{ body }*/ } { const f = 0; /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ function f() {} /*{ body }*/ } { function f() {} /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ function* f() {} /*{ body }*/ } { function* f() {} /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ let f; /*{ body }*/ } { let f; /*{ body }*/ }

View File

@ -16,4 +16,6 @@ negative:
features: [async-functions] features: [async-functions]
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: async function f() {} default: /*{ body }*/ } switch (0) { case 1: async function f() {} default: /*{ body }*/ }

View File

@ -16,4 +16,6 @@ negative:
features: [async-iteration] features: [async-iteration]
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: async function* f() {} default: /*{ body }*/ } switch (0) { case 1: async function* f() {} default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: class f {} default: /*{ body }*/ } switch (0) { case 1: class f {} default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: const f = 0; default: /*{ body }*/ } switch (0) { case 1: const f = 0; default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: function f() {} default: /*{ body }*/ } switch (0) { case 1: function f() {} default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: function* f() {} default: /*{ body }*/ } switch (0) { case 1: function* f() {} default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: let f; default: /*{ body }*/ } switch (0) { case 1: let f; default: /*{ body }*/ }

View File

@ -16,4 +16,6 @@ negative:
features: [async-functions] features: [async-functions]
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ async function f() {} /*{ body }*/ } { async function f() {} /*{ body }*/ }

View File

@ -16,4 +16,6 @@ negative:
features: [async-iteration] features: [async-iteration]
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ async function* f() {} /*{ body }*/ } { async function* f() {} /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ class f {} /*{ body }*/ } { class f {} /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ const f = 0; /*{ body }*/ } { const f = 0; /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ function f() {} /*{ body }*/ } { function f() {} /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ function* f() {} /*{ body }*/ } { function* f() {} /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ let f; /*{ body }*/ } { let f; /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
{ var f; /*{ body }*/ } { var f; /*{ body }*/ }

View File

@ -16,4 +16,6 @@ negative:
features: [async-functions] features: [async-functions]
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: async function f() {} default: /*{ body }*/ } switch (0) { case 1: async function f() {} default: /*{ body }*/ }

View File

@ -16,4 +16,6 @@ negative:
features: [async-iteration] features: [async-iteration]
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: async function* f() {} default: /*{ body }*/ } switch (0) { case 1: async function* f() {} default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: class f {} default: /*{ body }*/ } switch (0) { case 1: class f {} default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: const f = 0; default: /*{ body }*/ } switch (0) { case 1: const f = 0; default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: function f() {} default: /*{ body }*/ } switch (0) { case 1: function f() {} default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: function* f() {} default: /*{ body }*/ } switch (0) { case 1: function* f() {} default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: let f; default: /*{ body }*/ } switch (0) { case 1: let f; default: /*{ body }*/ }

View File

@ -15,4 +15,6 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
throw "Test262: This statement should not be evaluated.";
switch (0) { case 1: var f; default: /*{ body }*/ } switch (0) { case 1: var f; default: /*{ body }*/ }

View File

@ -13,6 +13,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[ x = yield ] [ x = yield ]
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[[(x, y)]] [[(x, y)]]
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[[x[yield]]] [[x[yield]]]
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[{ get x() {} }] [{ get x() {} }]
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[{ x = yield }] [{ x = yield }]
//- vals //- vals

View File

@ -15,6 +15,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[arguments] [arguments]
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[ x[yield] ] [ x[yield] ]
//- vals //- vals

View File

@ -13,6 +13,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[ x = yield ] [ x = yield ]
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[[(x, y)]] [[(x, y)]]
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[[x[yield]]] [[x[yield]]]
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[{ get x() {} }] [{ get x() {} }]
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[{ x = yield }] [{ x = yield }]
//- vals //- vals

View File

@ -15,6 +15,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[arguments] [arguments]
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[ x[yield] ] [ x[yield] ]
//- vals //- vals

View File

@ -12,6 +12,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[...x, y] [...x, y]
//- vals //- vals

View File

@ -12,6 +12,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[...x,] [...x,]
//- vals //- vals

View File

@ -12,6 +12,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[...x, ...y] [...x, ...y]
//- vals //- vals

View File

@ -12,6 +12,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[...x,] [...x,]
//- vals //- vals

View File

@ -12,6 +12,7 @@ negative:
---*/ ---*/
//- setup //- setup
throw "Test262: This statement should not be evaluated.";
var x; var x;
//- elems //- elems
[...x = 1] [...x = 1]

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[...[(x, y)]] [...[(x, y)]]
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[...[x[yield]]] [...[x[yield]]]
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[...{ get x() {} }] [...{ get x() {} }]
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
[...{ x = yield }] [...{ x = yield }]
//- vals //- vals

View File

@ -15,6 +15,7 @@ negative:
---*/ ---*/
//- setup //- setup
throw "Test262: This statement should not be evaluated.";
var x = {}; var x = {};
//- elems //- elems
[...x[yield]] [...x[yield]]

View File

@ -15,6 +15,7 @@ negative:
---*/ ---*/
//- setup //- setup
throw "Test262: This statement should not be evaluated.";
(function*() { (function*() {
//- elems //- elems
{ yield } { yield }

View File

@ -13,6 +13,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
{ yield } { yield }
//- vals //- vals

View File

@ -13,6 +13,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
{ eval = 0 } { eval = 0 }
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
{ x = yield } { x = yield }
//- vals //- vals

View File

@ -13,6 +13,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
{ eval } { eval }
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
{ x: x = yield } { x: x = yield }
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
{ x: x[yield] } { x: x[yield] }
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
{ x: [(x, y)] } { x: [(x, y)] }
//- vals //- vals

View File

@ -14,6 +14,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
{ x: [x = yield] } { x: [x = yield] }
//- vals //- vals

View File

@ -15,6 +15,8 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- elems //- elems
{ x: { get x() {} } } { x: { get x() {} } }
//- vals //- vals

Some files were not shown because too many files have changed in this diff Show More