Add proxyTag check to _.isFunction for Safari 10 support of the Proxy constructor. [closes #2689]

This commit is contained in:
John-David Dalton
2016-09-29 14:54:09 -07:00
parent 7a345b5606
commit 20fa52309c

View File

@@ -95,6 +95,7 @@
numberTag = '[object Number]',
objectTag = '[object Object]',
promiseTag = '[object Promise]',
proxyTag = '[object Proxy]',
regexpTag = '[object RegExp]',
setTag = '[object Set]',
stringTag = '[object String]',
@@ -11570,7 +11571,7 @@
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 8-9 which returns 'object' for typed array and other constructors.
var tag = isObject(value) ? objectToString.call(value) : '';
return tag == funcTag || tag == genTag;
return tag == funcTag || tag == genTag || tag == proxyTag;
}
/**