summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Class/derivedConstructorTDZExplicitThis.js
blob: fc5dd3858bf22eaf5144f7300eb8fc4c7efa1dc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class foo extends null {
    constructor() {
        this;
        assertEq(false, true);
    }
}

for (let i = 0; i < 1100; i++)
    assertThrownErrorContains(() => new foo(), "|this|");

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