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 330330 assert . ok ( ! _ . isEqual ( - 0 , 0 ) , 'Commutative equality is implemented for `0` and `-0`' ) ;
331331 assert . ok ( ! _ . isEqual ( null , void 0 ) , '`null` is not equal to `undefined`' ) ;
332332 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)`' ) ;
333334
334335 // String object and primitive comparisons.
335336 assert . ok ( _ . isEqual ( 'Curly' , 'Curly' ) , 'Identical string primitives are equal' ) ;
Original file line number Diff line number Diff line change 12231223 // Object(NaN) is equivalent to NaN.
12241224 if ( + a !== + a ) return + b !== + b ;
12251225 // 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 ;
12271227 case '[object Date]' :
12281228 case '[object Boolean]' :
12291229 // 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