mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Remove V8 JIT bug fix for _.isObject.
This commit is contained in:
committed by
John-David Dalton
parent
e7c3afc1e5
commit
5ca26e6ae0
@@ -9792,8 +9792,6 @@
|
|||||||
* // => false
|
* // => false
|
||||||
*/
|
*/
|
||||||
function isObject(value) {
|
function isObject(value) {
|
||||||
// Avoid a V8 JIT bug in Chrome 19-20.
|
|
||||||
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
|
|
||||||
var type = typeof value;
|
var type = typeof value;
|
||||||
return !!value && (type == 'object' || type == 'function');
|
return !!value && (type == 'object' || type == 'function');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user