Skip to content

Commit 420d793

Browse files
shobhitchittoraBethGriggs
authored andcommitted
doc: adds assert doc for strict mode with pointer to strict equality
Refs: #30485 PR-URL: #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>
1 parent 366a45b commit 420d793

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)