Skip to content

Commit 1c09165

Browse files
skdas20aduh95
authored andcommitted
doc: mention constructor check in deepStrictEqual
Signed-off-by: skdas20 <skdas5405@gmail.com> PR-URL: #62010 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 70d1124 commit 1c09165

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

doc/api/assert.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ are recursively evaluated also by the following rules.
612612
* [`[[Prototype]]`][prototype-spec] of objects are compared using
613613
the [`===` operator][].
614614
* Only [enumerable "own" properties][] are considered.
615+
* Object constructors are compared when available.
615616
* {Error} names, messages, causes, and errors are always compared,
616617
even if these are not enumerable properties.
617618
`errors` is also compared.

0 commit comments

Comments
 (0)