Skip to content

Commit 10bdb59

Browse files
Trotttargos
authored andcommitted
doc: add reference for === operator in assert.md
PR-URL: #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 e1ff452 commit 10bdb59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/assert.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ are recursively evaluated also by the following rules.
682682
[`Object.is()`][].
683683
* [Type tags][Object.prototype.toString()] of objects should be the same.
684684
* [`[[Prototype]]`][prototype-spec] of objects are compared using
685-
the [Strict Equality Comparison][].
685+
the [`===` operator][].
686686
* Only [enumerable "own" properties][] are considered.
687687
* [`Error`][] names and messages are always compared, even if these are not
688688
enumerable properties.
@@ -2437,8 +2437,8 @@ argument.
24372437
[Object wrappers]: https://developer.mozilla.org/en-US/docs/Glossary/Primitive#Primitive_wrapper_objects_in_JavaScript
24382438
[Object.prototype.toString()]: https://tc39.github.io/ecma262/#sec-object.prototype.tostring
24392439
[SameValue Comparison]: https://tc39.github.io/ecma262/#sec-samevalue
2440-
[Strict Equality Comparison]: https://tc39.github.io/ecma262/#sec-strict-equality-comparison
24412440
[`!=` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality
2441+
[`===` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality
24422442
[`==` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality
24432443
[`AssertionError`]: #class-assertassertionerror
24442444
[`CallTracker`]: #class-assertcalltracker

0 commit comments

Comments
 (0)