Skip to content

Commit c84fce5

Browse files
committed
doc: mention constructor comparison in assert.deepStrictEqual
1 parent 4f24aff commit c84fce5

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)