diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-06-15 00:01:01 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-06-17 10:24:12 +0800 |
commit | 370873c59e811132bfd60ccea12caaad869daac7 (patch) | |
tree | 588925b82e5e196630fde3b1df131ba8ac6753ae /Makefile | |
parent | 1432065e9dc77218507f328b63cb7f5d279dd6e9 (diff) | |
download | node-new-370873c59e811132bfd60ccea12caaad869daac7.tar.gz |
process: refactor unhandled rejection handling
- Use constants instead of a dictionary and add comments
about the behavior of each mode.
- Use switch cases to handle the unhandled rejection modes.
- Rename the run time value of the CLI option from `state`
to `unhandledRejectionsMode`.
- Return in the call site of `emitWarning` when
`--unhandled-rejections=none` instead of inside
the function.
PR-URL: https://github.com/nodejs/node/pull/28228
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions