mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Use heritage for cases checking early errors with super
This commit is contained in:
parent
938915ddb5
commit
84ca816378
@ -12,6 +12,9 @@ template: syntax/invalid
|
||||
features: [async-iteration]
|
||||
---*/
|
||||
|
||||
// Uses a valid heritage to avoid false positives
|
||||
//- heritage
|
||||
extends Function
|
||||
//- elements
|
||||
async * method() {
|
||||
super();
|
||||
|
@ -12,6 +12,9 @@ template: syntax/invalid
|
||||
features: [async-functions]
|
||||
---*/
|
||||
|
||||
// Uses a valid heritage to avoid false positives
|
||||
//- heritage
|
||||
extends Function
|
||||
//- elements
|
||||
async method() {
|
||||
super();
|
||||
|
@ -12,6 +12,9 @@ template: syntax/invalid
|
||||
features: [generators]
|
||||
---*/
|
||||
|
||||
// Uses a valid heritage to avoid false positives
|
||||
//- heritage
|
||||
extends Function
|
||||
//- elements
|
||||
* method() {
|
||||
super();
|
||||
|
@ -11,6 +11,9 @@ info: |
|
||||
template: syntax/invalid
|
||||
---*/
|
||||
|
||||
// Uses a valid heritage to avoid false positives
|
||||
//- heritage
|
||||
extends Function
|
||||
//- elements
|
||||
get method() {
|
||||
super();
|
||||
|
@ -11,6 +11,9 @@ info: |
|
||||
template: syntax/invalid
|
||||
---*/
|
||||
|
||||
// Uses a valid heritage to avoid false positives
|
||||
//- heritage
|
||||
extends Function
|
||||
//- elements
|
||||
method() {
|
||||
super();
|
||||
|
@ -12,6 +12,9 @@ template: syntax/invalid
|
||||
features: [async-iteration, class-methods-private]
|
||||
---*/
|
||||
|
||||
// Uses a valid heritage to avoid false positives
|
||||
//- heritage
|
||||
extends Function
|
||||
//- elements
|
||||
async * #method() {
|
||||
super();
|
||||
|
@ -12,6 +12,9 @@ template: syntax/invalid
|
||||
features: [async-functions, class-methods-private]
|
||||
---*/
|
||||
|
||||
// Uses a valid heritage to avoid false positives
|
||||
//- heritage
|
||||
extends Function
|
||||
//- elements
|
||||
async #method() {
|
||||
super();
|
||||
|
@ -12,6 +12,9 @@ template: syntax/invalid
|
||||
features: [generators, class-methods-private]
|
||||
---*/
|
||||
|
||||
// Uses a valid heritage to avoid false positives
|
||||
//- heritage
|
||||
extends Function
|
||||
//- elements
|
||||
* #method() {
|
||||
super();
|
||||
|
@ -12,6 +12,9 @@ template: syntax/invalid
|
||||
features: [class-methods-private]
|
||||
---*/
|
||||
|
||||
// Uses a valid heritage to avoid false positives
|
||||
//- heritage
|
||||
extends Function
|
||||
//- elements
|
||||
#method() {
|
||||
super();
|
||||
|
@ -11,6 +11,9 @@ info: |
|
||||
template: syntax/invalid
|
||||
---*/
|
||||
|
||||
// Uses a valid heritage to avoid false positives
|
||||
//- heritage
|
||||
extends Function
|
||||
//- elements
|
||||
set method(_) {
|
||||
super();
|
||||
|
Loading…
x
Reference in New Issue
Block a user