Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorMURAKAMI Masahiko <fossamagna2@gmail.com>2022-11-07 15:02:56 +0300
committerGitHub <noreply@github.com>2022-11-07 15:02:56 +0300
commit06603c44a5b0e92b1a3591ace467ce9770bf9658 (patch)
tree5482925276d28e574d4a48352d097f96a84cbb91 /doc/api
parentb13738a55830708c49f277d1d8ee7a6dc0594308 (diff)
test_runner: avoid swallowing of asynchronously thrown errors
Fixes: https://github.com/nodejs/node/issues/44612 PR-URL: https://github.com/nodejs/node/pull/45264 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/test.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/test.md b/doc/api/test.md
index 69e37025bee..8d2fa871ce6 100644
--- a/doc/api/test.md
+++ b/doc/api/test.md
@@ -272,8 +272,8 @@ top level of the file's TAP output.
The second `setImmediate()` creates an `uncaughtException` event.
`uncaughtException` and `unhandledRejection` events originating from a completed
-test are handled by the `test` module and reported as diagnostic warnings in
-the top level of the file's TAP output.
+test are marked as failed by the `test` module and reported as diagnostic
+warnings in the top level of the file's TAP output.
```js
test('a test that creates asynchronous activity', (t) => {