summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Class/derivedConstructorArrowEvalSuperCall.js
blob: 0f60df7465d0c64b74b2e6fc931c7315c75f702a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
new class extends class { } {
    constructor() {
        assertEq(eval("super(); this"), this);
        assertEq(this, eval("this"));
        assertEq(this, (()=>this)());
    }
}();

new class extends class { } {
    constructor() {
        (()=>super())();
        assertEq(this, eval("this"));
        assertEq(this, (()=>this)());
    }
}();

if (typeof reportCompare === 'function')
    reportCompare(0,0,"OK");