@@ -546,10 +546,6 @@ An alias of [`assert.ok()`][].
546546<!-- YAML
547547added: v0.1.21
548548changes:
549- - version: REPLACEME
550- pr-url: https://github.com/nodejs/node/pull/46593
551- description: Recursion now stops when either side encounters a circular
552- reference.
553549 - version: v18.0.0
554550 pr-url: https://github.com/nodejs/node/pull/41020
555551 description: Regular expressions lastIndex property is now compared as well.
@@ -621,7 +617,7 @@ are also recursively evaluated by the following rules.
621617* [ Object wrappers] [ ] are compared both as objects and unwrapped values.
622618* ` Object ` properties are compared unordered.
623619* [ ` Map ` ] [ ] keys and [ ` Set ` ] [ ] items are compared unordered.
624- * Recursion stops when both sides differ or either side encounters a circular
620+ * Recursion stops when both sides differ or both sides encounter a circular
625621 reference.
626622* Implementation does not test the [ ` [[Prototype]] ` ] [ prototype-spec ] of
627623 objects.
@@ -731,10 +727,6 @@ parameter is an instance of an [`Error`][] then it will be thrown instead of the
731727<!-- YAML
732728added: v1.2.0
733729changes:
734- - version: REPLACEME
735- pr-url: https://github.com/nodejs/node/pull/46593
736- description: Recursion now stops when either side encounters a circular
737- reference.
738730 - version: v18.0.0
739731 pr-url: https://github.com/nodejs/node/pull/41020
740732 description: Regular expressions lastIndex property is now compared as well.
@@ -788,7 +780,7 @@ are recursively evaluated also by the following rules.
788780* [ Object wrappers] [ ] are compared both as objects and unwrapped values.
789781* ` Object ` properties are compared unordered.
790782* [ ` Map ` ] [ ] keys and [ ` Set ` ] [ ] items are compared unordered.
791- * Recursion stops when both sides differ or either side encounters a circular
783+ * Recursion stops when both sides differ or both sides encounter a circular
792784 reference.
793785* [ ` WeakMap ` ] [ ] and [ ` WeakSet ` ] [ ] comparison does not rely on their values. See
794786 below for further details.
0 commit comments