util: assert: fix deepEqual comparing fake-boxed to real boxed primitive
PR-URL: https://github.com/nodejs/node/pull/29029 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
parent
e079f6c93e
commit
6c3af76fef
@ -221,7 +221,9 @@ function innerDeepEqual(val1, val2, strict, memos) {
|
||||
if (!areEqualArrayBuffers(val1, val2)) {
|
||||
return false;
|
||||
}
|
||||
} else if (isBoxedPrimitive(val1) && !isEqualBoxedPrimitive(val1, val2)) {
|
||||
}
|
||||
if ((isBoxedPrimitive(val1) || isBoxedPrimitive(val2)) &&
|
||||
!isEqualBoxedPrimitive(val1, val2)) {
|
||||
return false;
|
||||
}
|
||||
return keyCheck(val1, val2, strict, memos, kNoIterator);
|
||||
|
Loading…
x
Reference in New Issue
Block a user