mirror of https://github.com/tc39/test262.git
Generate tests
This commit is contained in:
parent
8a59f61c2b
commit
3bcb28e918
|
@ -0,0 +1,34 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-elements/super-private-access-invalid.case
|
||||
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||
/*---
|
||||
description: It is syntax error if PrivateName IdentifierName is accessed on SuperProperty (class expression)
|
||||
esid: prod-ClassElement
|
||||
features: [class-methods-private, class]
|
||||
flags: [generated]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
SuperProperty:
|
||||
super[Expression]
|
||||
super.IdentifierName
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
var C = class extends B
|
||||
{
|
||||
method() {
|
||||
super.#x();
|
||||
}
|
||||
};
|
|
@ -0,0 +1,34 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/class-elements/super-private-access-invalid.case
|
||||
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||
/*---
|
||||
description: It is syntax error if PrivateName IdentifierName is accessed on SuperProperty (class declaration)
|
||||
esid: prod-ClassElement
|
||||
features: [class-methods-private, class]
|
||||
flags: [generated]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
ClassElementName :
|
||||
PropertyName
|
||||
PrivateName
|
||||
|
||||
PrivateName ::
|
||||
# IdentifierName
|
||||
|
||||
SuperProperty:
|
||||
super[Expression]
|
||||
super.IdentifierName
|
||||
|
||||
---*/
|
||||
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
class C extends B
|
||||
{
|
||||
method() {
|
||||
super.#x();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue