Skip to content

Commit c5a93e8

Browse files
authored
doc: simplify constructor comparison wording
1 parent 45ae52f commit c5a93e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/api/assert.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,7 @@ are also recursively evaluated by the following rules.
399399
both sides are {NaN}.
400400
* [Type tags][Object.prototype.toString()] of objects should be the same.
401401
* Only [enumerable "own" properties][] are considered.
402-
* Object constructors are also compared to ensure that instances are strictly deep-equal.
403-
This means that even if two objects share the same prototype and properties, differing constructors will result in inequality.
402+
* Object constructors are compared when available.
404403
* {Error} names, messages, causes, and errors are always compared,
405404
even if these are not enumerable properties.
406405
* [Object wrappers][] are compared both as objects and unwrapped values.

0 commit comments

Comments
 (0)