Skip to content

Commit

Permalink
src: prepare for V8 Swallowed Rejection Hook
Browse files Browse the repository at this point in the history
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: nodejs/promises-debugging#8
Design: https://goo.gl/2stLUY

PR-URL: #21838
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Yang Guo <[email protected]>
Reviewed-By: Benedikt Meurer <[email protected]>
  • Loading branch information
bmeurer authored and targos committed Jul 19, 2018
1 parent 756dff4 commit 41ff1bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 41ff1bb

Please sign in to comment.