doc: address missing paren
The closing paren was missing. Move to using commas instead. PR-URL: https://github.com/nodejs/node/pull/28483 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
This commit is contained in:
parent
83c1e173ea
commit
e1f27efebf
@ -171,7 +171,7 @@ try {
|
||||
|
||||
This will not work because the callback function passed to `fs.readFile()` is
|
||||
called asynchronously. By the time the callback has been called, the
|
||||
surrounding code (including the `try { } catch (err) { }` block will have
|
||||
surrounding code, including the `try { } catch (err) { }` block, will have
|
||||
already exited. Throwing an error inside the callback **can crash the Node.js
|
||||
process** in most cases. If [domains][] are enabled, or a handler has been
|
||||
registered with `process.on('uncaughtException')`, such errors can be
|
||||
|
Loading…
x
Reference in New Issue
Block a user