From 10bdb5969edc086fdd777e01659881a556f6601c Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 10 Jan 2022 02:13:23 -0800 Subject: [PATCH] doc: add reference for `===` operator in assert.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/41442 Reviewed-By: Antoine du Hamel Reviewed-By: Michaël Zasso Reviewed-By: Tobias Nießen Reviewed-By: Benjamin Gruenbaum Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Luigi Pinca --- doc/api/assert.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/assert.md b/doc/api/assert.md index e775b70f1d24c8..60e092a10c9131 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -682,7 +682,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. @@ -2437,8 +2437,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