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.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
class C {
|
class C /*{ heritage }*/ {
|
||||||
/*{ elements }*/
|
/*{ elements }*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,6 @@ negative:
|
||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
var C = class {
|
var C = class /*{ heritage }*/ {
|
||||||
/*{ elements }*/
|
/*{ elements }*/
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,6 +8,6 @@ path: language/statements/class/syntax/valid/
|
||||||
features: [class]
|
features: [class]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
class C {
|
class C /*{ heritage }*/ {
|
||||||
/*{ elements }*/
|
/*{ elements }*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,6 @@ path: language/expressions/class/syntax/valid/
|
||||||
features: [class]
|
features: [class]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var C = class {
|
var C = class /*{ heritage }*/ {
|
||||||
/*{ elements }*/
|
/*{ elements }*/
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue