mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 parent
8b783d46ef
commit
4a88ed09e8
1 file changed
+1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user