blob: f5b3ac3c0caf766c23988752c9c9da30d8dae574 [file] [log] [blame]
class base { constructor() { } }
class inst extends base { constructor() { super(); } }
Object.setPrototypeOf(inst, Math.sin);
assertThrowsInstanceOf(() => new inst(), TypeError);
class defaultInst extends base { }
Object.setPrototypeOf(inst, Math.sin);
assertThrowsInstanceOf(() => new inst(), TypeError);
if (typeof reportCompare === 'function')
reportCompare(0,0,"OK");