BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / Function_is_subclassable_can_be_used_with_new.js
1 function test() {
2
3 class C extends Function {}
4 var c = new C("this.bar = 2;");
5 c.prototype.baz = 3;
6 return new c().bar === 2 && new c().baz === 3;
7       
8 }
9
10 if (!test())
11     throw new Error("Test failed");
12