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 14, 2020
1 parent f258600 commit 1e6f14e
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
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
Expand Down
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
Expand Up @@ -450,8 +450,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_NOT_SET_PROMISE_REJECTION_CALLBACK;
}

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

0 comments on commit 1e6f14e

Please sign in to comment.