BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / miscellaneous_subclassables_String_is_subclassable.js
1 function test() {
2
3 class C extends String {}
4 var c = new C("golly");
5 return c instanceof String
6   && c + '' === "golly"
7   && c[0] === "g"
8   && c.length === 5;
9       
10 }
11
12 if (!test())
13     throw new Error("Test failed");
14