summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-08-09 21:06:32 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2018-09-25 10:04:09 +0200
commit5605cec0db9481d4cc85da1a7869f1d725c4357f (patch)
treeda5cc42b3db28614fde90b7686550830123c024d /src/env.h
parentea3bb9add27cfddf8a8408fefa65f8dc75a5d0bb (diff)
downloadandroid-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.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/env.h b/src/env.h
index 504bb5db2f..4db8ae2baa 100644
--- a/src/env.h
+++ b/src/env.h
@@ -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) \