blob: 20819433b3e461461e7593bbc2cd60ad0d23b83a [file] [log] [blame]
function checkConstruct(thing, buggy) {
try {
new thing();
} catch (e) {}
}
var boundFunctionPrototype = Function.prototype.bind();
checkConstruct(boundFunctionPrototype, true);
var boundBuiltin = Math.sin.bind();
checkConstruct(boundBuiltin, true);