diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-08-09 21:06:32 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-09-25 10:04:09 +0200 |
commit | 5605cec0db9481d4cc85da1a7869f1d725c4357f (patch) | |
tree | da5cc42b3db28614fde90b7686550830123c024d /src/env.h | |
parent | ea3bb9add27cfddf8a8408fefa65f8dc75a5d0bb (diff) | |
download | android-node-v8-5605cec0db9481d4cc85da1a7869f1d725c4357f.tar.gz android-node-v8-5605cec0db9481d4cc85da1a7869f1d725c4357f.tar.bz2 android-node-v8-5605cec0db9481d4cc85da1a7869f1d725c4357f.zip |
process: add `multipleResolves` event
This adds the `multipleResolves` event to track promises that resolve
more than once or that reject after resolving.
It is important to expose this to the user to make sure the
application runs as expected. Without such warnings it would be very
hard to debug these situations.
PR-URL: https://github.com/nodejs/node/pull/22218
Fixes: https://github.com/nodejs/promises-debugging/issues/8
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -342,8 +342,7 @@ struct PackageConfig { V(performance_entry_callback, v8::Function) \ V(performance_entry_template, v8::Function) \ V(process_object, v8::Object) \ - V(promise_reject_handled_function, v8::Function) \ - V(promise_reject_unhandled_function, v8::Function) \ + V(promise_handler_function, v8::Function) \ V(promise_wrap_template, v8::ObjectTemplate) \ V(push_values_to_array_function, v8::Function) \ V(sab_lifetimepartner_constructor_template, v8::FunctionTemplate) \ |