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);