Skip to content

Commit ca78dda

Browse files
committed
fixup! address comment
1 parent f83b6c4 commit ca78dda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/util/comparisons.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ function innerDeepEqual(val1, val2, mode, memos) {
236236
const time1 = DatePrototypeGetTime(val1);
237237
const time2 = DatePrototypeGetTime(val2);
238238
if (time1 !== time2) {
239-
return NumberIsNaN(time1) && NumberIsNaN(time2);
239+
// eslint-disable-next-line no-self-compare
240+
return time1 !== time1 && time2 !== time2;
240241
}
241242
} else if (isRegExp(val1)) {
242243
if (!isRegExp(val2) || !areSimilarRegExps(val1, val2)) {

0 commit comments

Comments
 (0)