Skip to content

Commit 9ba2345

Browse files
committed
fixup! doc: update Abstract Equality Comparison text in assert.md
1 parent 044a68f commit 9ba2345

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

doc/api/assert.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ more on color support in terminal environments, read the tty
104104

105105
## Legacy assertion mode
106106

107-
Legacy assertion mode uses the [Abstract Equality Comparison][] (`==`) in:
107+
Legacy assertion mode uses the `==` operator in:
108108

109109
* [`assert.deepEqual()`][]
110110
* [`assert.equal()`][]
@@ -1166,7 +1166,7 @@ An alias of [`assert.strictEqual()`][].
11661166
> Stability: 3 - Legacy: Use [`assert.strictEqual()`][] instead.
11671167
11681168
Tests shallow, coercive equality between the `actual` and `expected` parameters
1169-
using the [Abstract Equality Comparison][] (`==`). `NaN` is specially handled
1169+
using the `==` operator. `NaN` is specially handled
11701170
and treated as being identical if both sides are `NaN`.
11711171

11721172
```mjs
@@ -1684,8 +1684,8 @@ An alias of [`assert.notStrictEqual()`][].
16841684

16851685
> Stability: 3 - Legacy: Use [`assert.notStrictEqual()`][] instead.
16861686
1687-
Tests shallow, coercive inequality with the [Abstract Equality Comparison][]
1688-
(`!=`). `NaN` is specially handled and treated as being identical in case both
1687+
Tests shallow, coercive inequality with the
1688+
`!=`. `NaN` is specially handled and treated as being identical in case both
16891689
sides are `NaN`.
16901690

16911691
```mjs
@@ -2445,7 +2445,6 @@ assert.throws(throwingFirst, /Second$/);
24452445
Due to the confusing error-prone notation, avoid a string as the second
24462446
argument.
24472447

2448-
[Abstract Equality Comparison]: https://262.ecma-international.org/#sec-abstract-equality-comparison
24492448
[Object wrappers]: https://developer.mozilla.org/en-US/docs/Glossary/Primitive#Primitive_wrapper_objects_in_JavaScript
24502449
[Object.prototype.toString()]: https://tc39.github.io/ecma262/#sec-object.prototype.tostring
24512450
[SameValue Comparison]: https://tc39.github.io/ecma262/#sec-samevalue

0 commit comments

Comments
 (0)