-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Qiming Ma
committed
Aug 20, 2019
1 parent
3950c32
commit d4b50bb
Showing
6 changed files
with
150 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...expressions/class/elements/syntax/early-errors/grammar-privatemeth-duplicate-async-gen.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/class-elements/grammar-privatemeth-duplicate-async-gen.case | ||
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template | ||
/*--- | ||
description: It's a SyntaxError if a class contains a private async generator and a private field with the same name (class expression) | ||
esid: prod-ClassElement | ||
features: [class-methods-private, class] | ||
flags: [generated] | ||
negative: | ||
phase: parse | ||
type: SyntaxError | ||
info: | | ||
Static Semantics: Early Errors | ||
ClassBody : ClassElementList | ||
It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries. | ||
---*/ | ||
|
||
|
||
$DONOTEVALUATE(); | ||
|
||
var C = class { | ||
#m; | ||
}; |
25 changes: 25 additions & 0 deletions
25
...age/expressions/class/elements/syntax/early-errors/grammar-privatemeth-duplicate-async.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/class-elements/grammar-privatemeth-duplicate-async.case | ||
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template | ||
/*--- | ||
description: It's a SyntaxError if a class contains a private async function and a private field with the same name (class expression) | ||
esid: prod-ClassElement | ||
features: [class-methods-private, class] | ||
flags: [generated] | ||
negative: | ||
phase: parse | ||
type: SyntaxError | ||
info: | | ||
Static Semantics: Early Errors | ||
ClassBody : ClassElementList | ||
It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries. | ||
---*/ | ||
|
||
|
||
$DONOTEVALUATE(); | ||
|
||
var C = class { | ||
#m; | ||
}; |
25 changes: 25 additions & 0 deletions
25
...guage/expressions/class/elements/syntax/early-errors/grammar-privatemeth-duplicate-gen.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/class-elements/grammar-privatemeth-duplicate-gen.case | ||
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template | ||
/*--- | ||
description: It's a SyntaxError if a class contains a private generator and a private field with the same name (class expression) | ||
esid: prod-ClassElement | ||
features: [class-methods-private, class] | ||
flags: [generated] | ||
negative: | ||
phase: parse | ||
type: SyntaxError | ||
info: | | ||
Static Semantics: Early Errors | ||
ClassBody : ClassElementList | ||
It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries. | ||
---*/ | ||
|
||
|
||
$DONOTEVALUATE(); | ||
|
||
var C = class { | ||
#m; | ||
}; |
25 changes: 25 additions & 0 deletions
25
.../statements/class/elements/syntax/early-errors/grammar-privatemeth-duplicate-async-gen.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/class-elements/grammar-privatemeth-duplicate-async-gen.case | ||
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template | ||
/*--- | ||
description: It's a SyntaxError if a class contains a private async generator and a private field with the same name (class declaration) | ||
esid: prod-ClassElement | ||
features: [class-methods-private, class] | ||
flags: [generated] | ||
negative: | ||
phase: parse | ||
type: SyntaxError | ||
info: | | ||
Static Semantics: Early Errors | ||
ClassBody : ClassElementList | ||
It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries. | ||
---*/ | ||
|
||
|
||
$DONOTEVALUATE(); | ||
|
||
class C { | ||
#m; | ||
} |
25 changes: 25 additions & 0 deletions
25
...uage/statements/class/elements/syntax/early-errors/grammar-privatemeth-duplicate-async.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/class-elements/grammar-privatemeth-duplicate-async.case | ||
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template | ||
/*--- | ||
description: It's a SyntaxError if a class contains a private async function and a private field with the same name (class declaration) | ||
esid: prod-ClassElement | ||
features: [class-methods-private, class] | ||
flags: [generated] | ||
negative: | ||
phase: parse | ||
type: SyntaxError | ||
info: | | ||
Static Semantics: Early Errors | ||
ClassBody : ClassElementList | ||
It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries. | ||
---*/ | ||
|
||
|
||
$DONOTEVALUATE(); | ||
|
||
class C { | ||
#m; | ||
} |
25 changes: 25 additions & 0 deletions
25
...nguage/statements/class/elements/syntax/early-errors/grammar-privatemeth-duplicate-gen.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// This file was procedurally generated from the following sources: | ||
// - src/class-elements/grammar-privatemeth-duplicate-gen.case | ||
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template | ||
/*--- | ||
description: It's a SyntaxError if a class contains a private generator and a private field with the same name (class declaration) | ||
esid: prod-ClassElement | ||
features: [class-methods-private, class] | ||
flags: [generated] | ||
negative: | ||
phase: parse | ||
type: SyntaxError | ||
info: | | ||
Static Semantics: Early Errors | ||
ClassBody : ClassElementList | ||
It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries. | ||
---*/ | ||
|
||
|
||
$DONOTEVALUATE(); | ||
|
||
class C { | ||
#m; | ||
} |