mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Add optional heritage for classes syntax templates
This commit is contained in:
parent
af9bcfef5f
commit
938915ddb5
@ -13,6 +13,6 @@ negative:
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
class C {
|
||||
class C /*{ heritage }*/ {
|
||||
/*{ elements }*/
|
||||
}
|
||||
|
@ -13,6 +13,6 @@ negative:
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
var C = class {
|
||||
var C = class /*{ heritage }*/ {
|
||||
/*{ elements }*/
|
||||
};
|
||||
|
@ -8,6 +8,6 @@ path: language/statements/class/syntax/valid/
|
||||
features: [class]
|
||||
---*/
|
||||
|
||||
class C {
|
||||
class C /*{ heritage }*/ {
|
||||
/*{ elements }*/
|
||||
}
|
||||
|
@ -8,6 +8,6 @@ path: language/expressions/class/syntax/valid/
|
||||
features: [class]
|
||||
---*/
|
||||
|
||||
var C = class {
|
||||
var C = class /*{ heritage }*/ {
|
||||
/*{ elements }*/
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user