Fix isBindFast and isKeysFast.

Former-commit-id: 59e6cfa0669f28139a7036a172995d7f7f8a64ef
This commit is contained in:
John-David Dalton
2012-12-02 00:01:29 -08:00
parent 9aa506cbd7
commit e3eabcf648

View File

@@ -121,10 +121,10 @@
isV8 = nativeBind && !/\n|true/.test(nativeBind + isIeOpera);
/* Detect if `Function#bind` exists and is inferred to be fast (all but V8) */
var isBindFast = !isV8;
var isBindFast = nativeBind && !isV8;
/* Detect if `Object.keys` exists and is inferred to be fast (IE, Opera, V8) */
var isKeysFast = isIeOpera || isV8;
var isKeysFast = nativeKeys && (isIeOpera || isV8);
/**
* Detect the JScript [[DontEnum]] bug: