summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Class/superCallInvalidBase.js
blob: 86b24f96c5c788ee340bc34c2bf9b4958d05da74 (plain)
1
2
3
4
5
6
7
8
9
class instance extends null {
    constructor() { super(); }
}

assertThrowsInstanceOf(() => new instance(), TypeError);
assertThrowsInstanceOf(() => new class extends null { }(), TypeError);

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