Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / js / src / tests / non262 / class / derivedConstructorArrowEvalSuperCall.js
blob0f60df7465d0c64b74b2e6fc931c7315c75f702a
1 new class extends class { } {
2     constructor() {
3         assertEq(eval("super(); this"), this);
4         assertEq(this, eval("this"));
5         assertEq(this, (()=>this)());
6     }
7 }();
9 new class extends class { } {
10     constructor() {
11         (()=>super())();
12         assertEq(this, eval("this"));
13         assertEq(this, (()=>this)());
14     }
15 }();
17 if (typeof reportCompare === 'function')
18     reportCompare(0,0,"OK");