mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 06:55:06 +02:00
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
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
var \u0061wait;
|
var \u0061wait;
|
||||||
|
@ -17,5 +17,7 @@ negative:
|
|||||||
template: syntax
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
var await;
|
var await;
|
||||||
|
@ -17,5 +17,7 @@ negative:
|
|||||||
template: syntax
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
void \u0061wait;
|
void \u0061wait;
|
||||||
|
@ -17,5 +17,7 @@ negative:
|
|||||||
template: syntax
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
void await;
|
void await;
|
||||||
|
@ -17,5 +17,7 @@ negative:
|
|||||||
template: syntax
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
\u0061wait: ;
|
\u0061wait: ;
|
||||||
|
@ -17,5 +17,7 @@ negative:
|
|||||||
template: syntax
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
await: ;
|
await: ;
|
||||||
|
@ -17,5 +17,7 @@ negative:
|
|||||||
template: syntax
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
var \u0061wait;
|
var \u0061wait;
|
||||||
|
@ -17,5 +17,7 @@ negative:
|
|||||||
template: syntax
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
var await;
|
var await;
|
||||||
|
@ -17,5 +17,7 @@ negative:
|
|||||||
template: syntax
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
void \u0061wait;
|
void \u0061wait;
|
||||||
|
@ -17,5 +17,7 @@ negative:
|
|||||||
template: syntax
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
void await;
|
void await;
|
||||||
|
@ -17,5 +17,7 @@ negative:
|
|||||||
template: syntax
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
\u0061wait: ;
|
\u0061wait: ;
|
||||||
|
@ -17,5 +17,7 @@ negative:
|
|||||||
template: syntax
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
await: ;
|
await: ;
|
||||||
|
@ -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;
|
||||||
|
@ -17,5 +17,7 @@ negative:
|
|||||||
template: syntax
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
var yield;
|
var yield;
|
||||||
|
@ -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;
|
||||||
|
@ -17,5 +17,7 @@ negative:
|
|||||||
template: syntax
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
void yield;
|
void yield;
|
||||||
|
@ -17,5 +17,7 @@ negative:
|
|||||||
template: syntax
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
yi\u0065ld: ;
|
yi\u0065ld: ;
|
||||||
|
@ -17,5 +17,7 @@ negative:
|
|||||||
template: syntax
|
template: syntax
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
yield: ;
|
yield: ;
|
||||||
|
@ -19,6 +19,8 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- body
|
//- body
|
||||||
return {
|
return {
|
||||||
...(function() {
|
...(function() {
|
||||||
|
@ -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;
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -15,4 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{ class f {} /*{ body }*/ }
|
{ class f {} /*{ body }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -16,4 +16,6 @@ negative:
|
|||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{ function f() {} /*{ body }*/ }
|
{ function f() {} /*{ body }*/ }
|
||||||
|
@ -15,4 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{ function* f() {} /*{ body }*/ }
|
{ function* f() {} /*{ body }*/ }
|
||||||
|
@ -15,4 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{ let f; /*{ body }*/ }
|
{ let f; /*{ body }*/ }
|
||||||
|
@ -15,4 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{ var f; /*{ body }*/ }
|
{ var f; /*{ body }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -15,4 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{ class f {} /*{ body }*/ }
|
{ class f {} /*{ body }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -15,4 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{ function f() {} /*{ body }*/ }
|
{ function f() {} /*{ body }*/ }
|
||||||
|
@ -15,4 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{ function* f() {} /*{ body }*/ }
|
{ function* f() {} /*{ body }*/ }
|
||||||
|
@ -15,4 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{ let f; /*{ body }*/ }
|
{ let f; /*{ body }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -15,4 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{ class f {} /*{ body }*/ }
|
{ class f {} /*{ body }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -15,4 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{ function f() {} /*{ body }*/ }
|
{ function f() {} /*{ body }*/ }
|
||||||
|
@ -15,4 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{ function* f() {} /*{ body }*/ }
|
{ function* f() {} /*{ body }*/ }
|
||||||
|
@ -15,4 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{ let f; /*{ body }*/ }
|
{ let f; /*{ body }*/ }
|
||||||
|
@ -15,4 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{ var f; /*{ body }*/ }
|
{ var f; /*{ body }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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 }*/ }
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -15,6 +15,8 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- elems
|
//- elems
|
||||||
[arguments]
|
[arguments]
|
||||||
//- vals
|
//- vals
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -15,6 +15,8 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- elems
|
//- elems
|
||||||
[arguments]
|
[arguments]
|
||||||
//- vals
|
//- vals
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -12,6 +12,8 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- elems
|
//- elems
|
||||||
[...x,]
|
[...x,]
|
||||||
//- vals
|
//- vals
|
||||||
|
@ -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
|
||||||
|
@ -12,6 +12,8 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- elems
|
//- elems
|
||||||
[...x,]
|
[...x,]
|
||||||
//- vals
|
//- vals
|
||||||
|
@ -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]
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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]]
|
||||||
|
@ -15,6 +15,7 @@ negative:
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
(function*() {
|
(function*() {
|
||||||
//- elems
|
//- elems
|
||||||
{ yield }
|
{ yield }
|
||||||
|
@ -13,6 +13,8 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- elems
|
//- elems
|
||||||
{ yield }
|
{ yield }
|
||||||
//- vals
|
//- vals
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -13,6 +13,8 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
//- setup
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
//- elems
|
//- elems
|
||||||
{ eval }
|
{ eval }
|
||||||
//- vals
|
//- vals
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
Loading…
x
Reference in New Issue
Block a user