Skip to content

Commit 56fc712

Browse files
tniessenbengl
authored andcommitted
doc: use serial comma in assert docs
Refs: #11321 Refs: #17384 PR-URL: #43154 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
1 parent 093a3cf commit 56fc712

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/assert.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ are also recursively evaluated by the following rules.
540540
objects.
541541
* [`Symbol`][] properties are not compared.
542542
* [`WeakMap`][] and [`WeakSet`][] comparison does not rely on their values.
543-
* [`RegExp`][] lastIndex, flags and source are always compared, even if these
543+
* [`RegExp`][] lastIndex, flags, and source are always compared, even if these
544544
are not enumerable properties.
545545

546546
The following example does not throw an [`AssertionError`][] because the
@@ -701,7 +701,7 @@ are recursively evaluated also by the following rules.
701701
reference.
702702
* [`WeakMap`][] and [`WeakSet`][] comparison does not rely on their values. See
703703
below for further details.
704-
* [`RegExp`][] lastIndex, flags and source are always compared, even if these
704+
* [`RegExp`][] lastIndex, flags, and source are always compared, even if these
705705
are not enumerable properties.
706706

707707
```mjs
@@ -970,7 +970,7 @@ benefit in catching a rejection and then rejecting it again. Instead, consider
970970
adding a comment next to the specific code path that should not reject and keep
971971
error messages as expressive as possible.
972972

973-
If specified, `error` can be a [`Class`][], [`RegExp`][] or a validation
973+
If specified, `error` can be a [`Class`][], [`RegExp`][], or a validation
974974
function. See [`assert.throws()`][] for more details.
975975

976976
Besides the async nature to await the completion behaves identically to
@@ -1052,7 +1052,7 @@ parameter, then an [`AssertionError`][] is thrown. If the error is of a
10521052
different type, or if the `error` parameter is undefined, the error is
10531053
propagated back to the caller.
10541054

1055-
If specified, `error` can be a [`Class`][], [`RegExp`][] or a validation
1055+
If specified, `error` can be a [`Class`][], [`RegExp`][], or a validation
10561056
function. See [`assert.throws()`][] for more details.
10571057

10581058
The following, for instance, will throw the [`TypeError`][] because there is no

0 commit comments

Comments
 (0)