src: prepare for V8 Swallowed Rejection Hook

This is done in preparation for landing

  https://chromium-review.googlesource.com/c/v8/v8/+/1126099

on the V8 side, which extends the existing PromiseRejectEvent mechanism
with new hooks for reject/resolve after a Promise was previously
resolved already.

Refs: https://github.com/nodejs/promises-debugging/issues/8
Design: https://goo.gl/2stLUY

PR-URL: https://github.com/nodejs/node/pull/21838
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yang Guo <yangguo@chromium.org>
Reviewed-By: Benedikt Meurer <benedikt.meurer@gmail.com>
This commit is contained in:
Benedikt Meurer authored and Michaël Zasso committed 2018-07-19 09:49:29 +02:00
1 parent 756dff498a
commit 41ff1bb9c7
1 file changed
+1 -1
+1 -1
View File
@@ -69,7 +69,7 @@ void PromiseRejectCallback(PromiseRejectMessage message) {
callback = env->promise_reject_handled_function();
value = Undefined(isolate);
} else {
UNREACHABLE();
return;
}
Local<Value> args[] = { promise, value };