mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Generate tests
This commit is contained in:
parent
75a579a0d4
commit
7766d0fb66
@ -0,0 +1,25 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-elements/grammar-privatename-constructor.case
|
||||
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||
/*---
|
||||
description: Private Fields cannot be named constructor (class expression)
|
||||
esid: prod-ClassElement
|
||||
features: [class-fields-private, class]
|
||||
flags: [generated]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Class Definitions / Static Semantics: Early Errors
|
||||
|
||||
ClassElementName : PrivateName ;
|
||||
It is a Syntax Error if StringValue of PrivateName is "#constructor"
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
var C = class {
|
||||
#constructor
|
||||
};
|
@ -0,0 +1,25 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-elements/grammar-static-private-async-gen-meth-constructor.case
|
||||
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||
/*---
|
||||
description: Static Async Generator Private Methods cannot be named constructor (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
|
||||
|
||||
ClassElementName : PrivateName ;
|
||||
It is a Syntax Error if StringValue of PrivateName is "#constructor"
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
var C = class {
|
||||
static async * #constructor() {}
|
||||
};
|
@ -0,0 +1,25 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-elements/grammar-static-private-async-meth-constructor.case
|
||||
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||
/*---
|
||||
description: Static Async Private Methods cannot be named constructor (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
|
||||
|
||||
ClassElementName : PrivateName ;
|
||||
It is a Syntax Error if StringValue of PrivateName is "#constructor"
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
var C = class {
|
||||
static async #constructor() {}
|
||||
};
|
@ -0,0 +1,25 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-elements/grammar-static-private-gen-meth-constructor.case
|
||||
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||
/*---
|
||||
description: Static Generator Private Methods cannot be named constructor (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
|
||||
|
||||
ClassElementName : PrivateName ;
|
||||
It is a Syntax Error if StringValue of PrivateName is "#constructor"
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
var C = class {
|
||||
static * #constructor() {}
|
||||
};
|
@ -0,0 +1,25 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-elements/grammar-static-private-meth-constructor.case
|
||||
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||
/*---
|
||||
description: Static Private Methods cannot be named constructor (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
|
||||
|
||||
ClassElementName : PrivateName ;
|
||||
It is a Syntax Error if StringValue of PrivateName is "#constructor"
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
var C = class {
|
||||
static #constructor() {}
|
||||
};
|
@ -0,0 +1,25 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-elements/grammar-static-privatename-constructor.case
|
||||
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||
/*---
|
||||
description: Static Private Fields cannot be named constructor (class expression)
|
||||
esid: prod-ClassElement
|
||||
features: [class-static-fields-private, class]
|
||||
flags: [generated]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Class Definitions / Static Semantics: Early Errors
|
||||
|
||||
ClassElementName : PrivateName ;
|
||||
It is a Syntax Error if StringValue of PrivateName is "#constructor"
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
var C = class {
|
||||
static #constructor
|
||||
};
|
@ -0,0 +1,25 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-elements/grammar-privatename-constructor.case
|
||||
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||
/*---
|
||||
description: Private Fields cannot be named constructor (class declaration)
|
||||
esid: prod-ClassElement
|
||||
features: [class-fields-private, class]
|
||||
flags: [generated]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Class Definitions / Static Semantics: Early Errors
|
||||
|
||||
ClassElementName : PrivateName ;
|
||||
It is a Syntax Error if StringValue of PrivateName is "#constructor"
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
class C {
|
||||
#constructor
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-elements/grammar-static-private-async-gen-meth-constructor.case
|
||||
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||
/*---
|
||||
description: Static Async Generator Private Methods cannot be named constructor (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
|
||||
|
||||
ClassElementName : PrivateName ;
|
||||
It is a Syntax Error if StringValue of PrivateName is "#constructor"
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
class C {
|
||||
static async * #constructor() {}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-elements/grammar-static-private-async-meth-constructor.case
|
||||
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||
/*---
|
||||
description: Static Async Private Methods cannot be named constructor (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
|
||||
|
||||
ClassElementName : PrivateName ;
|
||||
It is a Syntax Error if StringValue of PrivateName is "#constructor"
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
class C {
|
||||
static async #constructor() {}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-elements/grammar-static-private-gen-meth-constructor.case
|
||||
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||
/*---
|
||||
description: Static Generator Private Methods cannot be named constructor (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
|
||||
|
||||
ClassElementName : PrivateName ;
|
||||
It is a Syntax Error if StringValue of PrivateName is "#constructor"
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
class C {
|
||||
static * #constructor() {}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-elements/grammar-static-private-meth-constructor.case
|
||||
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||
/*---
|
||||
description: Static Private Methods cannot be named constructor (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
|
||||
|
||||
ClassElementName : PrivateName ;
|
||||
It is a Syntax Error if StringValue of PrivateName is "#constructor"
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
class C {
|
||||
static #constructor() {}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-elements/grammar-static-privatename-constructor.case
|
||||
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||
/*---
|
||||
description: Static Private Fields cannot be named constructor (class declaration)
|
||||
esid: prod-ClassElement
|
||||
features: [class-static-fields-private, class]
|
||||
flags: [generated]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Class Definitions / Static Semantics: Early Errors
|
||||
|
||||
ClassElementName : PrivateName ;
|
||||
It is a Syntax Error if StringValue of PrivateName is "#constructor"
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
class C {
|
||||
static #constructor
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user