mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(ext/node): fix deepStrictEqual(-0, 0) (#29060)
This commit is contained in:
parent
733ffd9dd9
commit
84b192ee5d
2 changed files with 9 additions and 1 deletions
|
@ -103,7 +103,7 @@ export function equal(c: unknown, d: unknown): boolean {
|
|||
return aTime === bTime;
|
||||
}
|
||||
if (typeof a === "number" && typeof b === "number") {
|
||||
return NumberIsNaN(a) && NumberIsNaN(b) || a === b;
|
||||
return ObjectIs(a, b);
|
||||
}
|
||||
if (ObjectIs(a, b)) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue