mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Simplify environment detections.
This commit is contained in:
@@ -559,9 +559,8 @@
|
||||
return false;
|
||||
}());
|
||||
|
||||
/** Detect various environments */
|
||||
var isIeOpera = reNative.test(context.attachEvent),
|
||||
isV8 = nativeBind && !/\n|true/.test(nativeBind + isIeOpera);
|
||||
/** Used to enable optimizations for V8 */
|
||||
var isV8 = nativeBind && !/\n/.test(nativeBind) && !reNative.test(context.attachEvent);
|
||||
|
||||
/** Used to lookup a built-in constructor by [[Class]] */
|
||||
var ctorByClass = {};
|
||||
|
||||
Reference in New Issue
Block a user