mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
doc: add reference for === operator in assert.md
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
e83e41634a
commit
fe24cb2cd9
1 file changed
+2
-2
+2
-2
@@ -680,7 +680,7 @@ are recursively evaluated also by the following rules.
|
||||
[`Object.is()`][].
|
||||
* [Type tags][Object.prototype.toString()] of objects should be the same.
|
||||
* [`[[Prototype]]`][prototype-spec] of objects are compared using
|
||||
the [Strict Equality Comparison][].
|
||||
the [`===` operator][].
|
||||
* Only [enumerable "own" properties][] are considered.
|
||||
* [`Error`][] names and messages are always compared, even if these are not
|
||||
enumerable properties.
|
||||
@@ -2429,8 +2429,8 @@ argument.
|
||||
[Object wrappers]: https://developer.mozilla.org/en-US/docs/Glossary/Primitive#Primitive_wrapper_objects_in_JavaScript
|
||||
[Object.prototype.toString()]: https://tc39.github.io/ecma262/#sec-object.prototype.tostring
|
||||
[SameValue Comparison]: https://tc39.github.io/ecma262/#sec-samevalue
|
||||
[Strict Equality Comparison]: https://tc39.github.io/ecma262/#sec-strict-equality-comparison
|
||||
[`!=` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality
|
||||
[`===` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality
|
||||
[`==` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality
|
||||
[`AssertionError`]: #class-assertassertionerror
|
||||
[`CallTracker`]: #class-assertcalltracker
|
||||
|
||||
Reference in new issue
Block a user