mirror of
https://github.com/tc39/test262.git
synced 2025-06-19 13:30:28 +02:00
Move throw "…"
for negative parsing errors to a helper function
Closes #1634.
This commit is contained in:
parent
3936950114
commit
e3feffb01e
@ -217,7 +217,7 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var var = var;
|
var var = var;
|
||||||
```
|
```
|
||||||
|
@ -203,7 +203,7 @@ negative:
|
|||||||
phase: parse
|
phase: parse
|
||||||
type: ReferenceError
|
type: ReferenceError
|
||||||
---*/
|
---*/
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
'litera'=1;
|
'litera'=1;
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -213,7 +213,7 @@ negative:
|
|||||||
phase: parse
|
phase: parse
|
||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
var a\u2E2F;
|
var a\u2E2F;
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -225,7 +225,7 @@ negative:
|
|||||||
type: ReferenceError
|
type: ReferenceError
|
||||||
flags: [module]
|
flags: [module]
|
||||||
---*/
|
---*/
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
export {} from './instn-resolve-empty-export_FIXTURE.js';
|
export {} from './instn-resolve-empty-export_FIXTURE.js';
|
||||||
// instn-resolve-empty-export_FIXTURE.js contains only:
|
// instn-resolve-empty-export_FIXTURE.js contains only:
|
||||||
// 0++;
|
// 0++;
|
||||||
|
@ -21,3 +21,7 @@ var $ERROR;
|
|||||||
$ERROR = function $ERROR(message) {
|
$ERROR = function $ERROR(message) {
|
||||||
throw new Test262Error(message);
|
throw new Test262Error(message);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function failIfCodeGetsEvaluated() {
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
}
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
var \u0061wait;
|
var \u0061wait;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
var await;
|
var await;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
void \u0061wait;
|
void \u0061wait;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
void await;
|
void await;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
\u0061wait: ;
|
\u0061wait: ;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
await: ;
|
await: ;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
var \u0061wait;
|
var \u0061wait;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
var await;
|
var await;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
void \u0061wait;
|
void \u0061wait;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
void await;
|
void await;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
\u0061wait: ;
|
\u0061wait: ;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
await: ;
|
await: ;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
var yi\u0065ld;
|
var yi\u0065ld;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
var yield;
|
var yield;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
void yi\u0065ld;
|
void yi\u0065ld;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
void yield;
|
void yield;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
yi\u0065ld: ;
|
yi\u0065ld: ;
|
||||||
|
@ -18,6 +18,6 @@ template: syntax
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
yield: ;
|
yield: ;
|
||||||
|
@ -20,7 +20,7 @@ negative:
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
return {
|
return {
|
||||||
...(function() {
|
...(function() {
|
||||||
|
@ -13,7 +13,7 @@ negative:
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- setup
|
//- setup
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
//- body
|
//- body
|
||||||
(function() {
|
(function() {
|
||||||
var yield;
|
var yield;
|
||||||
|
@ -29,7 +29,7 @@ negative:
|
|||||||
phase: parse
|
phase: parse
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
#x;
|
#x;
|
||||||
|
@ -29,7 +29,7 @@ negative:
|
|||||||
phase: parse
|
phase: parse
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
#x;
|
#x;
|
||||||
|
@ -23,7 +23,7 @@ negative:
|
|||||||
phase: parse
|
phase: parse
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
#x;
|
#x;
|
||||||
|
@ -29,7 +29,7 @@ negative:
|
|||||||
phase: parse
|
phase: parse
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
#x;
|
#x;
|
||||||
|
@ -29,7 +29,7 @@ negative:
|
|||||||
phase: parse
|
phase: parse
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
#x;
|
#x;
|
||||||
|
@ -23,7 +23,7 @@ negative:
|
|||||||
phase: parse
|
phase: parse
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
#x;
|
#x;
|
||||||
|
@ -29,7 +29,7 @@ negative:
|
|||||||
phase: parse
|
phase: parse
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
#x;
|
#x;
|
||||||
|
@ -29,7 +29,7 @@ negative:
|
|||||||
phase: parse
|
phase: parse
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
#x;
|
#x;
|
||||||
|
@ -23,7 +23,7 @@ negative:
|
|||||||
phase: parse
|
phase: parse
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
#x;
|
#x;
|
||||||
|
@ -29,7 +29,7 @@ negative:
|
|||||||
phase: parse
|
phase: parse
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
#x;
|
#x;
|
||||||
|
@ -29,7 +29,7 @@ negative:
|
|||||||
phase: parse
|
phase: parse
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
#x;
|
#x;
|
||||||
|
@ -23,7 +23,7 @@ negative:
|
|||||||
phase: parse
|
phase: parse
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
#x;
|
#x;
|
||||||
|
@ -8,7 +8,7 @@ name: arrow function expression
|
|||||||
features: [arrow-function, class-fields-public]
|
features: [arrow-function, class-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
x = () => /*{ initializer }*/;
|
x = () => /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: computed ClassElementName
|
|||||||
features: [class, class-fields-public, computed-property-names]
|
features: [class, class-fields-public, computed-property-names]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var x = "string";
|
var x = "string";
|
||||||
class C {
|
class C {
|
||||||
|
@ -8,7 +8,7 @@ name: equality expression
|
|||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
x = {} == /*{ initializer }*/;
|
x = {} == /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: literal ClassElementName
|
|||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
x = /*{ initializer }*/;
|
x = /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: private field, arrow function expression
|
|||||||
features: [class, arrow-function, class-fields-private]
|
features: [class, arrow-function, class-fields-private]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
#x = () => /*{ initializer }*/;
|
#x = () => /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: ClassElementName PrivateName
|
|||||||
features: [class, class-fields-private]
|
features: [class, class-fields-private]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
#x = /*{ initializer }*/;
|
#x = /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: private field, ternary expression
|
|||||||
features: [class, class-fields-private]
|
features: [class, class-fields-private]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
#x = false ? {} : /*{ initializer }*/;
|
#x = false ? {} : /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: private field, typeof expression
|
|||||||
features: [class, class-fields-private]
|
features: [class, class-fields-private]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
#x = typeof /*{ initializer }*/;
|
#x = typeof /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: static computed ClassElementName
|
|||||||
features: [class, class-static-fields-public, computed-property-names]
|
features: [class, class-static-fields-public, computed-property-names]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var x = "string";
|
var x = "string";
|
||||||
class C {
|
class C {
|
||||||
|
@ -8,7 +8,7 @@ name: static literal ClassElementName
|
|||||||
features: [class, class-static-fields-public]
|
features: [class, class-static-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
static x = /*{ initializer }*/;
|
static x = /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: static PrivateName
|
|||||||
features: [class, class-static-fields-private]
|
features: [class, class-static-fields-private]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
static #x = /*{ initializer }*/;
|
static #x = /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: static string literal ClassElementName
|
|||||||
features: [class, class-static-fields-public]
|
features: [class, class-static-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
static 'x' = /*{ initializer }*/;
|
static 'x' = /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: string literal ClassElementName
|
|||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
'x' = /*{ initializer }*/;
|
'x' = /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: ternary expression
|
|||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
x = false ? {} : /*{ initializer }*/;
|
x = false ? {} : /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: typeof expression
|
|||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
x = typeof /*{ initializer }*/;
|
x = typeof /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: arrow function expression
|
|||||||
features: [arrow-function, class, class-fields-public]
|
features: [arrow-function, class, class-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
x = () => /*{ initializer }*/;
|
x = () => /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: computed ClassElementName
|
|||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var x = "string";
|
var x = "string";
|
||||||
var C = class {
|
var C = class {
|
||||||
|
@ -8,7 +8,7 @@ name: equality expression
|
|||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
x = {} == /*{ initializer }*/;
|
x = {} == /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: literal ClassElementName
|
|||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
x = /*{ initializer }*/;
|
x = /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: private field, arrow function expression
|
|||||||
features: [class, arrow-function, class-fields-private]
|
features: [class, arrow-function, class-fields-private]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
#x = () => /*{ initializer }*/;
|
#x = () => /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: ClassElementName PrivateName
|
|||||||
features: [class, class-fields-private]
|
features: [class, class-fields-private]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
#x = /*{ initializer }*/;
|
#x = /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: private field, ternary expression
|
|||||||
features: [class, class-fields-private]
|
features: [class, class-fields-private]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
#x = true ? {} : /*{ initializer }*/;
|
#x = true ? {} : /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: private field, typeof expression
|
|||||||
features: [class, class-fields-private]
|
features: [class, class-fields-private]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
#x = typeof /*{ initializer }*/;
|
#x = typeof /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: static computed ClassElementName
|
|||||||
features: [class, class-static-fields-public, computed-property-names]
|
features: [class, class-static-fields-public, computed-property-names]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var x = "string";
|
var x = "string";
|
||||||
var C = class {
|
var C = class {
|
||||||
|
@ -8,7 +8,7 @@ name: static literal ClassElementName
|
|||||||
features: [class, class-static-fields-public]
|
features: [class, class-static-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
static x = /*{ initializer }*/;
|
static x = /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: static PrivateName
|
|||||||
features: [class, class-static-fields-private]
|
features: [class, class-static-fields-private]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
static #x = /*{ initializer }*/;
|
static #x = /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: static string literal ClassElementName
|
|||||||
features: [class, class-static-fields-public]
|
features: [class, class-static-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
static 'x' = /*{ initializer }*/;
|
static 'x' = /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: string literal ClassElementName
|
|||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
'x' = /*{ initializer }*/;
|
'x' = /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: ternary expression
|
|||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
x = true ? {} : /*{ initializer }*/;
|
x = true ? {} : /*{ initializer }*/;
|
||||||
|
@ -8,7 +8,7 @@ name: typeof expression
|
|||||||
features: [class, class-fields-public]
|
features: [class, class-fields-public]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class {
|
var C = class {
|
||||||
x = typeof /*{ initializer }*/;
|
x = typeof /*{ initializer }*/;
|
||||||
|
@ -11,7 +11,7 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
class C /*{ heritage }*/{
|
class C /*{ heritage }*/{
|
||||||
/*{ elements }*/
|
/*{ elements }*/
|
||||||
|
@ -11,7 +11,7 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
var C = class /*{ heritage }*/{
|
var C = class /*{ heritage }*/{
|
||||||
/*{ elements }*/
|
/*{ elements }*/
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
features: [async-functions]
|
features: [async-functions]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ async function f() {} /*{ body }*/ }
|
{ async function f() {} /*{ body }*/ }
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
features: [async-iteration]
|
features: [async-iteration]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ async function* f() {} /*{ body }*/ }
|
{ async function* f() {} /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ class f {} /*{ body }*/ }
|
{ class f {} /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ const f = 0; /*{ body }*/ }
|
{ const f = 0; /*{ body }*/ }
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ function f() {} /*{ body }*/ }
|
{ function f() {} /*{ body }*/ }
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
features: [generators]
|
features: [generators]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ function* f() {} /*{ body }*/ }
|
{ function* f() {} /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ let f; /*{ body }*/ }
|
{ let f; /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ var f; /*{ body }*/ }
|
{ var f; /*{ body }*/ }
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
features: [async-functions]
|
features: [async-functions]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
switch (0) { case 1: async function f() {} default: /*{ body }*/ }
|
switch (0) { case 1: async function f() {} default: /*{ body }*/ }
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
features: [async-iteration]
|
features: [async-iteration]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
switch (0) { case 1: async function* f() {} default: /*{ body }*/ }
|
switch (0) { case 1: async function* f() {} default: /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
switch (0) { case 1: class f {} default: /*{ body }*/ }
|
switch (0) { case 1: class f {} default: /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
switch (0) { case 1: const f = 0; default: /*{ body }*/ }
|
switch (0) { case 1: const f = 0; default: /*{ body }*/ }
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
switch (0) { case 1: function f() {} default: /*{ body }*/ }
|
switch (0) { case 1: function f() {} default: /*{ body }*/ }
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
features: [generators]
|
features: [generators]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
switch (0) { case 1: function* f() {} default: /*{ body }*/ }
|
switch (0) { case 1: function* f() {} default: /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
switch (0) { case 1: let f; default: /*{ body }*/ }
|
switch (0) { case 1: let f; default: /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
switch (0) { case 1: var f; default: /*{ body }*/ }
|
switch (0) { case 1: var f; default: /*{ body }*/ }
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
features: [async-functions]
|
features: [async-functions]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ async function f() {} /*{ body }*/ }
|
{ async function f() {} /*{ body }*/ }
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
features: [async-iteration]
|
features: [async-iteration]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ async function* f() {} /*{ body }*/ }
|
{ async function* f() {} /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ class f {} /*{ body }*/ }
|
{ class f {} /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ const f = 0; /*{ body }*/ }
|
{ const f = 0; /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ function f() {} /*{ body }*/ }
|
{ function f() {} /*{ body }*/ }
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
features: [generators]
|
features: [generators]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ function* f() {} /*{ body }*/ }
|
{ function* f() {} /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ let f; /*{ body }*/ }
|
{ let f; /*{ body }*/ }
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
features: [async-functions]
|
features: [async-functions]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
switch (0) { case 1: async function f() {} default: /*{ body }*/ }
|
switch (0) { case 1: async function f() {} default: /*{ body }*/ }
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
features: [async-iteration]
|
features: [async-iteration]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
switch (0) { case 1: async function* f() {} default: /*{ body }*/ }
|
switch (0) { case 1: async function* f() {} default: /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
switch (0) { case 1: class f {} default: /*{ body }*/ }
|
switch (0) { case 1: class f {} default: /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
switch (0) { case 1: const f = 0; default: /*{ body }*/ }
|
switch (0) { case 1: const f = 0; default: /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
switch (0) { case 1: function f() {} default: /*{ body }*/ }
|
switch (0) { case 1: function f() {} default: /*{ body }*/ }
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
features: [generators]
|
features: [generators]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
switch (0) { case 1: function* f() {} default: /*{ body }*/ }
|
switch (0) { case 1: function* f() {} default: /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
switch (0) { case 1: let f; default: /*{ body }*/ }
|
switch (0) { case 1: let f; default: /*{ body }*/ }
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
features: [async-functions]
|
features: [async-functions]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ async function f() {} /*{ body }*/ }
|
{ async function f() {} /*{ body }*/ }
|
||||||
|
@ -16,6 +16,6 @@ negative:
|
|||||||
features: [async-iteration]
|
features: [async-iteration]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ async function* f() {} /*{ body }*/ }
|
{ async function* f() {} /*{ body }*/ }
|
||||||
|
@ -15,6 +15,6 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
failIfCodeGetsEvaluated();
|
||||||
|
|
||||||
{ class f {} /*{ body }*/ }
|
{ class f {} /*{ body }*/ }
|
||||||
|
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