summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorShobhit Chittora <chittorashobhit@gmail.com>2019-11-14 17:37:11 +0530
committerAnna Henningsen <anna@addaleax.net>2019-12-03 23:49:14 +0100
commitdbdad4d1b518a6a9fde60c9ce61e53b92bda8d38 (patch)
tree26ce95f8f91010715daba4255ebfc5c67be935c8 /doc
parent0e3d774ed21375675b024f555a67773821e56a9d (diff)
downloadandroid-node-v8-dbdad4d1b518a6a9fde60c9ce61e53b92bda8d38.tar.gz
android-node-v8-dbdad4d1b518a6a9fde60c9ce61e53b92bda8d38.tar.bz2
android-node-v8-dbdad4d1b518a6a9fde60c9ce61e53b92bda8d38.zip
doc: adds assert doc for strict mode with pointer to strict equality
Refs: https://github.com/nodejs/node/issues/30485 PR-URL: https://github.com/nodejs/node/pull/30486 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/assert.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/assert.md b/doc/api/assert.md
index b0c8c378e6..9d1a7fb7e1 100644
--- a/doc/api/assert.md
+++ b/doc/api/assert.md
@@ -80,9 +80,9 @@ changes:
description: Added strict mode to the assert module.
-->
-In `strict` mode, `assert` functions use the comparison in the corresponding
-strict functions. For example, [`assert.deepEqual()`][] will behave like
-[`assert.deepStrictEqual()`][].
+In `strict` mode (not to be confused with `"use strict"`), `assert` functions
+use the comparison in the corresponding strict functions. For example,
+[`assert.deepEqual()`][] will behave like [`assert.deepStrictEqual()`][].
In `strict` mode, error messages for objects display a diff. In legacy mode,
error messages for objects display the objects, often truncated.