mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Fix failing unit test in older IE.
Former-commit-id: 2de10b6bc3b9720a14fba86d9fe2638b30a7d0ef
This commit is contained in:
3
build.js
3
build.js
@@ -1732,6 +1732,9 @@
|
|||||||
" (!b || (otherType != 'function' && otherType != 'object'))) {",
|
" (!b || (otherType != 'function' && otherType != 'object'))) {",
|
||||||
' return false;',
|
' return false;',
|
||||||
' }',
|
' }',
|
||||||
|
' if (a == null || b == null) {',
|
||||||
|
' return a === b;',
|
||||||
|
' }',
|
||||||
' var className = toString.call(a),',
|
' var className = toString.call(a),',
|
||||||
' otherClass = toString.call(b);',
|
' otherClass = toString.call(b);',
|
||||||
'',
|
'',
|
||||||
|
|||||||
@@ -1461,6 +1461,11 @@
|
|||||||
(!b || (otherType != 'function' && otherType != 'object'))) {
|
(!b || (otherType != 'function' && otherType != 'object'))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// exit early for `null` and `undefined`, avoiding ES3's Function#call behavior
|
||||||
|
// http://es5.github.com/#x15.3.4.4
|
||||||
|
if (a == null || b == null) {
|
||||||
|
return a === b;
|
||||||
|
}
|
||||||
// compare [[Class]] names
|
// compare [[Class]] names
|
||||||
var className = toString.call(a),
|
var className = toString.call(a),
|
||||||
otherClass = toString.call(b);
|
otherClass = toString.call(b);
|
||||||
|
|||||||
Reference in New Issue
Block a user