diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-06-17 10:48:21 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-06-19 15:44:09 +0800 |
commit | 1c23b6f2bec82904aacfff279f0e2776246b6da4 (patch) | |
tree | 9a157d091ac4a73e733d26f40d19686489dca461 /test/message/unhandled_promise_trace_warnings.out | |
parent | 82fe33f18abcb09605288d946e5142ddc5777419 (diff) | |
download | android-node-v8-1c23b6f2bec82904aacfff279f0e2776246b6da4.tar.gz android-node-v8-1c23b6f2bec82904aacfff279f0e2776246b6da4.tar.bz2 android-node-v8-1c23b6f2bec82904aacfff279f0e2776246b6da4.zip |
lib: refactor unhandled rejection deprecation warning emission
Emit the deprecation warning in the `kDefaultUnhandledRejections`
case to reduce the number of branches on unhandled rejection mode -
there is now only one switch case on it.
Also rename `emitWarning()` to `emitUnhandledRejectionWarning()`
to avoid ambiguity with `process.emitWarning()`
PR-URL: https://github.com/nodejs/node/pull/28258
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'test/message/unhandled_promise_trace_warnings.out')
-rw-r--r-- | test/message/unhandled_promise_trace_warnings.out | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/message/unhandled_promise_trace_warnings.out b/test/message/unhandled_promise_trace_warnings.out index c9fff40efb..c22dfbe0fc 100644 --- a/test/message/unhandled_promise_trace_warnings.out +++ b/test/message/unhandled_promise_trace_warnings.out @@ -21,7 +21,6 @@ at * at * at * - at * (node:*) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1) at handledRejection (internal/process/promises.js:*) at promiseRejectHandler (internal/process/promises.js:*) |