Skip to content

Commit 4399d59

Browse files
TrottLinkgoron
authored andcommitted
doc: add reference for === operator in assert.md
PR-URL: nodejs#41442 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent b8bf029 commit 4399d59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/assert.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ are recursively evaluated also by the following rules.
690690
[`Object.is()`][].
691691
* [Type tags][Object.prototype.toString()] of objects should be the same.
692692
* [`[[Prototype]]`][prototype-spec] of objects are compared using
693-
the [Strict Equality Comparison][].
693+
the [`===` operator][].
694694
* Only [enumerable "own" properties][] are considered.
695695
* [`Error`][] names and messages are always compared, even if these are not
696696
enumerable properties.
@@ -2447,8 +2447,8 @@ argument.
24472447
[Object wrappers]: https://developer.mozilla.org/en-US/docs/Glossary/Primitive#Primitive_wrapper_objects_in_JavaScript
24482448
[Object.prototype.toString()]: https://tc39.github.io/ecma262/#sec-object.prototype.tostring
24492449
[SameValue Comparison]: https://tc39.github.io/ecma262/#sec-samevalue
2450-
[Strict Equality Comparison]: https://tc39.github.io/ecma262/#sec-strict-equality-comparison
24512450
[`!=` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality
2451+
[`===` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality
24522452
[`==` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality
24532453
[`AssertionError`]: #class-assertassertionerror
24542454
[`CallTracker`]: #class-assertcalltracker

0 commit comments

Comments
 (0)