blob: 20819433b3e461461e7593bbc2cd60ad0d23b83a (
plain)
1
2
3
4
5
6
7
8
9
|
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);
|