Skip to content

Commit f93515c

Browse files
committed
fixup! comment & missing tag check
1 parent 1e76b29 commit f93515c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/util/comparisons.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ function objectComparisonStart(val1, val2, mode, memos) {
335335
return false;
336336
}
337337
} else if (mode === kLoose &&
338-
(isFloat32Array(val1) || isFloat64Array(val1) || isFloat16Array(val1))) {
338+
(isFloat32Array(val1) || isFloat64Array(val1) || isFloat16Array(val1))) {
339339
if (!areSimilarFloatArrays(val1, val2)) {
340340
return false;
341341
}
@@ -353,7 +353,7 @@ function objectComparisonStart(val1, val2, mode, memos) {
353353
}
354354
return keyCheck(val1, val2, mode, memos, kNoIterator, keys2);
355355
} else if (isDate(val1)) {
356-
if (!isDate(val2)) {
356+
if (!isDate(val2) || hasUnequalTag(val1, val2)) {
357357
return false;
358358
}
359359
const time1 = DatePrototypeGetTime(val1);

0 commit comments

Comments
 (0)