File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 330
330
assert . ok ( ! _ . isEqual ( - 0 , 0 ) , 'Commutative equality is implemented for `0` and `-0`' ) ;
331
331
assert . ok ( ! _ . isEqual ( null , void 0 ) , '`null` is not equal to `undefined`' ) ;
332
332
assert . ok ( ! _ . isEqual ( void 0 , null ) , 'Commutative equality is implemented for `null` and `undefined`' ) ;
333
+ assert . ok ( ! _ . isEqual ( 0 , new Number ( Number . MIN_VALUE ) ) , '`0` is not equal to `new Number(Number.MIN_VALUE)`' ) ;
333
334
334
335
// String object and primitive comparisons.
335
336
assert . ok ( _ . isEqual ( 'Curly' , 'Curly' ) , 'Identical string primitives are equal' ) ;
Original file line number Diff line number Diff line change 1223
1223
// Object(NaN) is equivalent to NaN.
1224
1224
if ( + a !== + a ) return + b !== + b ;
1225
1225
// An `egal` comparison is performed for other numeric values.
1226
- return + a === 0 ? 1 / + a === 1 / b : + a === + b ;
1226
+ return + a === 0 && + b === 0 ? 1 / + a === 1 / b : + a === + b ;
1227
1227
case '[object Date]' :
1228
1228
case '[object Boolean]' :
1229
1229
// Coerce dates and booleans to numeric primitive values. Dates are compared by their
You can’t perform that action at this time.
0 commit comments