Skip to content

Commit

Permalink
Remove redundant promise rejection callback
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Sep 1, 2020
1 parent b3007c9 commit 9bd811f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 53 deletions.
1 change: 0 additions & 1 deletion patches/node/.patches
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ fix_use_crypto_impls_for_compat.patch
fix_window_c-ares_incompatibilities.patch
fix_comment_out_incompatible_crypto_modules.patch
update_tests_after_increasing_typed_array_size.patch
fix_allow_preventing_setpromiserejectcallback.patch
lib_use_non-symbols_in_isurlinstance_check.patch
feat_add_implementation_of_v8_platform_postjob.patch
fix_enable_tls_renegotiation.patch
50 changes: 0 additions & 50 deletions patches/node/fix_allow_preventing_setpromiserejectcallback.patch

This file was deleted.

4 changes: 2 additions & 2 deletions shell/common/node_bindings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ node::Environment* NodeBindings::CreateEnvironment(
// We do not want to use the promise rejection callback that Node.js uses,
// because it does not send PromiseRejectionEvents to the global script
// context. We need to use the one Blink already provides.
is.flags &=
~node::IsolateSettingsFlags::SHOULD_SET_PROMISE_REJECTION_CALLBACK;
is.flags |=
node::IsolateSettingsFlags::SHOULD_SET_PROMISE_REJECTION_CALLBACK;
}

// This needs to be called before the inspector is initialized.
Expand Down

0 comments on commit 9bd811f

Please sign in to comment.