Skip to content

Commit fe24cb2

Browse files
Trottdanielleadams
authored andcommitted
doc: add reference for === operator in assert.md
PR-URL: #41442 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent e83e416 commit fe24cb2

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
@@ -680,7 +680,7 @@ are recursively evaluated also by the following rules.
680680
[`Object.is()`][].
681681
* [Type tags][Object.prototype.toString()] of objects should be the same.
682682
* [`[[Prototype]]`][prototype-spec] of objects are compared using
683-
the [Strict Equality Comparison][].
683+
the [`===` operator][].
684684
* Only [enumerable "own" properties][] are considered.
685685
* [`Error`][] names and messages are always compared, even if these are not
686686
enumerable properties.
@@ -2429,8 +2429,8 @@ argument.
24292429
[Object wrappers]: https://developer.mozilla.org/en-US/docs/Glossary/Primitive#Primitive_wrapper_objects_in_JavaScript
24302430
[Object.prototype.toString()]: https://tc39.github.io/ecma262/#sec-object.prototype.tostring
24312431
[SameValue Comparison]: https://tc39.github.io/ecma262/#sec-samevalue
2432-
[Strict Equality Comparison]: https://tc39.github.io/ecma262/#sec-strict-equality-comparison
24332432
[`!=` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality
2433+
[`===` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality
24342434
[`==` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality
24352435
[`AssertionError`]: #class-assertassertionerror
24362436
[`CallTracker`]: #class-assertcalltracker

0 commit comments

Comments
 (0)