BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / super_method_calls_use_correct_this_binding.js
1 function test() {
2
3 class B {
4   qux(a) { return this.foo + a; }
5 }
6 class C extends B {
7   qux(a) { return super.qux("bar" + a); }
8 }
9 var obj = new C();
10 obj.foo = "foo";
11 return obj.qux("baz") === "foobarbaz";
12       
13 }
14
15 if (!test())
16     throw new Error("Test failed");
17