doc: mention constructor comparison in assert.deepStrictEqual

PR-URL: https://github.com/nodejs/node/pull/60253
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Aviv Keller <me@aviv.sh>
This commit is contained in:
Hamza Kargin authored and Antoine du Hamel committed 2026-01-28 16:29:46 +01:00
1 parent 8b783d46ef
commit 4a88ed09e8
1 file changed
+1
+1
View File
@@ -715,6 +715,7 @@ are also recursively evaluated by the following rules.
both sides are {NaN}.
* [Type tags][Object.prototype.toString()] of objects should be the same.
* Only [enumerable "own" properties][] are considered.
* Object constructors are compared when available.
* {Error} names, messages, causes, and errors are always compared,
even if these are not enumerable properties.
* [Object wrappers][] are compared both as objects and unwrapped values.