mirror of https://github.com/tc39/test262.git
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…
Reference in New Issue