From e3eabcf6488d192ab767d8704e6401e57a9c4b77 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 2 Dec 2012 00:01:29 -0800 Subject: [PATCH] Fix `isBindFast` and `isKeysFast`. Former-commit-id: 59e6cfa0669f28139a7036a172995d7f7f8a64ef --- lodash.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index 1ff5b6844..19579ee95 100644 --- a/lodash.js +++ b/lodash.js @@ -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: