blob: fd1d589b97e2bc3d26d61544859b7c0c909eb276 [file] [log] [blame]
var obj = { method() { } };
assertThrowsInstanceOf(() => {
new obj.method;
}, TypeError);
obj = { constructor() { } };
assertThrowsInstanceOf(() => {
new obj.constructor;
}, TypeError);
if (typeof reportCompare === "function")
reportCompare(true, true);