Make isKeysFast true for Firefox too.

Former-commit-id: cf14455782375eccc4c32c5bfca41c3f918db2e8
This commit is contained in:
John-David Dalton
2013-02-21 23:19:26 -08:00
parent a76081c979
commit 03254a0c0f

View File

@@ -169,13 +169,14 @@
/** Detect various environments */
var isIeOpera = !!context.attachEvent,
isJSC = !/\n{2,}/.test(Function()),
isV8 = nativeBind && !/\n|true/.test(nativeBind + isIeOpera);
/* Detect if `Function#bind` exists and is inferred to be fast (all but V8) */
var isBindFast = nativeBind && !isV8;
/* Detect if `Object.keys` exists and is inferred to be fast (IE, Opera, V8) */
var isKeysFast = nativeKeys && (isIeOpera || isV8);
/* Detect if `Object.keys` exists and is inferred to be fast (Firefox, IE, Opera, V8) */
var isKeysFast = nativeKeys && (isIeOpera || isV8 || !isJSC);
/**
* Detect the JScript [[DontEnum]] bug: