mirror of https://github.com/tc39/test262.git
Generate tests
This commit is contained in:
parent
df147573a0
commit
ee9739c699
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
var C = class {
|
var C = class extends Function{
|
||||||
async * method() {
|
async * method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
var C = class {
|
var C = class extends Function{
|
||||||
async method() {
|
async method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
var C = class {
|
var C = class extends Function{
|
||||||
* method() {
|
* method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
var C = class {
|
var C = class extends Function{
|
||||||
get method() {
|
get method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
var C = class {
|
var C = class extends Function{
|
||||||
method() {
|
method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
var C = class {
|
var C = class extends Function{
|
||||||
async * #method() {
|
async * #method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
var C = class {
|
var C = class extends Function{
|
||||||
async #method() {
|
async #method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
var C = class {
|
var C = class extends Function{
|
||||||
* #method() {
|
* #method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
var C = class {
|
var C = class extends Function{
|
||||||
#method() {
|
#method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
var C = class {
|
var C = class extends Function{
|
||||||
set method(_) {
|
set method(_) {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-async-gen-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Async Generator Methods cannot contain direct super (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [async-iteration, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class extends Function{
|
||||||
|
static async * method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-async-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Async Methods cannot contain direct super (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [async-functions, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class extends Function{
|
||||||
|
static async method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-gen-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Generator Methods cannot contain direct super (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [generators, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class extends Function{
|
||||||
|
static * method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-get-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Accessor get Methods cannot contain direct super (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class extends Function{
|
||||||
|
static get method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Methods cannot contain direct super (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class extends Function{
|
||||||
|
static method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-private-async-gen-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Async Generator Private Methods cannot contain direct super (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [async-iteration, class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class extends Function{
|
||||||
|
static async * #method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-private-async-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Async Private Methods cannot contain direct super (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [async-functions, class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class extends Function{
|
||||||
|
static async #method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-private-gen-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Generator Private Methods cannot contain direct super (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [generators, class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class extends Function{
|
||||||
|
static * #method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-private-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Private Methods cannot contain direct super (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class extends Function{
|
||||||
|
static #method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-set-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Accessor set Methods cannot contain direct super (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class extends Function{
|
||||||
|
static set method(_) {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
};
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
class C {
|
class C extends Function{
|
||||||
async * method() {
|
async * method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
class C {
|
class C extends Function{
|
||||||
async method() {
|
async method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
class C {
|
class C extends Function{
|
||||||
* method() {
|
* method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
class C {
|
class C extends Function{
|
||||||
get method() {
|
get method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
class C {
|
class C extends Function{
|
||||||
method() {
|
method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
class C {
|
class C extends Function{
|
||||||
async * #method() {
|
async * #method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
class C {
|
class C extends Function{
|
||||||
async #method() {
|
async #method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
class C {
|
class C extends Function{
|
||||||
* #method() {
|
* #method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
class C {
|
class C extends Function{
|
||||||
#method() {
|
#method() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
class C {
|
class C extends Function{
|
||||||
set method(_) {
|
set method(_) {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-async-gen-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Async Generator Methods cannot contain direct super (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [async-iteration, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C extends Function{
|
||||||
|
static async * method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-async-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Async Methods cannot contain direct super (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [async-functions, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C extends Function{
|
||||||
|
static async method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-gen-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Generator Methods cannot contain direct super (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [generators, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C extends Function{
|
||||||
|
static * method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-get-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Accessor get Methods cannot contain direct super (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C extends Function{
|
||||||
|
static get method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Methods cannot contain direct super (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C extends Function{
|
||||||
|
static method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-private-async-gen-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Async Generator Private Methods cannot contain direct super (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [async-iteration, class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C extends Function{
|
||||||
|
static async * #method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-private-async-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Async Private Methods cannot contain direct super (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [async-functions, class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C extends Function{
|
||||||
|
static async #method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-private-gen-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Generator Private Methods cannot contain direct super (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [generators, class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C extends Function{
|
||||||
|
static * #method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-private-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Private Methods cannot contain direct super (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C extends Function{
|
||||||
|
static #method() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-static-set-meth-super.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: Static Accessor set Methods cannot contain direct super (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Class Definitions / Static Semantics: Early Errors
|
||||||
|
|
||||||
|
ClassElement : static MethodDefinition
|
||||||
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C extends Function{
|
||||||
|
static set method(_) {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue