Skip to content

Commit ffad436

Browse files
shobhitchittoratargos
authored andcommitted
doc: adds assert doc for strict mode with pointer to strict equality
Refs: #30485 PR-URL: #30486 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent e3a0c61 commit ffad436

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/assert.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ changes:
8080
description: Added strict mode to the assert module.
8181
-->
8282

83-
In `strict` mode, `assert` functions use the comparison in the corresponding
84-
strict functions. For example, [`assert.deepEqual()`][] will behave like
85-
[`assert.deepStrictEqual()`][].
83+
In `strict` mode (not to be confused with `"use strict"`), `assert` functions
84+
use the comparison in the corresponding strict functions. For example,
85+
[`assert.deepEqual()`][] will behave like [`assert.deepStrictEqual()`][].
8686

8787
In `strict` mode, error messages for objects display a diff. In legacy mode,
8888
error messages for objects display the objects, often truncated.

0 commit comments

Comments
 (0)