GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — assert: improve documentation wording · nodejs/node@84d706c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • assert.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/assert.md‎

Copy file name to clipboardExpand all lines: doc/api/assert.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ const assert2 = new Assert({ skipPrototype: true });
294294
assert2.deepStrictEqual(foo, bar); // OK
295295
```
296296

297-
When destructured, methods lose access to the instance's `this` context and revert to default assertion behavior
297+
When destructured, methods lose access to the instance's `this` context and revert to the default assertion behavior
298298
(diff: 'simple', non-strict mode).
299299
To maintain custom options when using destructured methods, avoid
300300
destructuring and call methods directly on the instance.
@@ -710,8 +710,8 @@ are also recursively evaluated by the following rules.
710710
### Comparison details
711711

712712
* Primitive values are compared with the [`==` operator][],
713-
with the exception of {NaN}. It is treated as being identical in case
714-
both sides are {NaN}.
713+
except for {NaN}, which is treated as identical when both
714+
sides are {NaN}.
715715
* [Type tags][Object.prototype.toString()] of objects should be the same.
716716
* Only [enumerable "own" properties][] are considered.
717717
* Object constructors are compared when available.
@@ -1210,7 +1210,7 @@ error messages as expressive as possible.
12101210
If specified, `error` can be a [`Class`][], {RegExp} or a validation
12111211
function. See [`assert.throws()`][] for more details.
12121212

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

12161216
```mjs

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.