summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Class/derivedConstructorArrowEvalClosed.js
blob: 431a73c92f246317923cac2d627c9bb186936d5a (plain)
1
2
3
4
5
6
7
8
9
10
11
new class extends class { } {
    constructor() {
        let a1 = () => this;
        let a2 = (() => super());
        assertThrowsInstanceOf(a1, ReferenceError);
        assertEq(a2(), a1());
    }
}();

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