summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Class/derivedConstructorArrowEvalEscape.js
blob: 2676d4b94613c2611e8190000aa58916c193618b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
let arrow;

class foo extends class { } {
    constructor() {
        arrow = () => this;
        super();
    }
}

assertEq(new foo(), arrow());

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