Skip to content

Commit f790e90

Browse files
committed
Merge branch 'nodejs:main' into doc/domexception-errors-page
2 parents 30cf350 + 6a6dee3 commit f790e90

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

doc/api/assert.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ const assert2 = new Assert({ skipPrototype: true });
317317
assert2.deepStrictEqual(foo, bar); // OK
318318
```
319319

320-
When destructured, methods lose access to the instance's `this` context and revert to default assertion behavior
320+
When destructured, methods lose access to the instance's `this` context and revert to the default assertion behavior
321321
(diff: 'simple', non-strict mode).
322322
To maintain custom options when using destructured methods, avoid
323323
destructuring and call methods directly on the instance.
@@ -423,8 +423,8 @@ are also recursively evaluated by the following rules.
423423
### Comparison details
424424

425425
* Primitive values are compared with the [`==` operator][],
426-
with the exception of {NaN}. It is treated as being identical in case
427-
both sides are {NaN}.
426+
except for {NaN}, which is treated as identical when both
427+
sides are {NaN}.
428428
* [Type tags][Object.prototype.toString()] of objects should be the same.
429429
* Only [enumerable "own" properties][] are considered.
430430
* Object constructors are compared when available.
@@ -938,7 +938,7 @@ error messages as expressive as possible.
938938
If specified, `error` can be a [`Class`][], {RegExp} or a validation
939939
function. See [`assert.throws()`][] for more details.
940940

941-
Besides the async nature to await the completion behaves identically to
941+
Aside from asynchronously awaiting completion, it behaves identically to
942942
[`assert.doesNotThrow()`][].
943943

944944
```mjs

0 commit comments

Comments
 (0)