summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/class/derivedConstructorTDZReturnObject.js
blob: 48206a881e1a949668917fb14d5ba7e34cb86106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class foo extends null {
    constructor() {
        // If you return an object, we don't care that |this| went
        // uninitialized
        return {};
    }
}

for (let i = 0; i < 1100; i++)
    new foo();

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