Skip to content

Commit 7b483d3

Browse files
authored
doc: mention constructor comparison in assert.deepStrictEqual
PR-URL: #60253 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Aviv Keller <me@aviv.sh>
1 parent 4bc42c0 commit 7b483d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/api/assert.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ are also recursively evaluated by the following rules.
427427
both sides are {NaN}.
428428
* [Type tags][Object.prototype.toString()] of objects should be the same.
429429
* Only [enumerable "own" properties][] are considered.
430+
* Object constructors are compared when available.
430431
* {Error} names, messages, causes, and errors are always compared,
431432
even if these are not enumerable properties.
432433
* [Object wrappers][] are compared both as objects and unwrapped values.

0 commit comments

Comments
 (0)