summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-06-15 00:01:01 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2019-06-17 10:24:12 +0800
commit370873c59e811132bfd60ccea12caaad869daac7 (patch)
tree588925b82e5e196630fde3b1df131ba8ac6753ae /Makefile
parent1432065e9dc77218507f328b63cb7f5d279dd6e9 (diff)
downloadandroid-node-v8-370873c59e811132bfd60ccea12caaad869daac7.tar.gz
android-node-v8-370873c59e811132bfd60ccea12caaad869daac7.tar.bz2
android-node-v8-370873c59e811132bfd60ccea12caaad869daac7.zip
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