Skip to content

Commit 2e0f36a

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 9ed7146 commit 2e0f36a

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
@@ -887,6 +887,7 @@ are recursively evaluated also by the following rules.
887887
* [`[[Prototype]]`][prototype-spec] of objects are compared using
888888
the [`===` operator][].
889889
* Only [enumerable "own" properties][] are considered.
890+
* Object constructors are compared when available.
890891
* {Error} names, messages, causes, and errors are always compared,
891892
even if these are not enumerable properties.
892893
`errors` is also compared.

0 commit comments

Comments
 (0)