Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process: refactor unhandledRejection logic #28540

Merged
merged 1 commit into from
Jul 7, 2019
Merged

Conversation

cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Jul 4, 2019

This commit prevents a deprecation warning from being emitted
if the 'unhandledRejection' event was actually handled.

Fixes: #28539

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the process Issues and PRs related to the process subsystem. label Jul 4, 2019
@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Jul 6, 2019

CI: https://ci.nodejs.org/job/node-test-pull-request/24316/

EDIT(cjihrig): CI was green.

@cjihrig cjihrig added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jul 6, 2019
This commit prevents a deprecation warning from being emitted
if the unhandledRejection event was actually handled.

PR-URL: nodejs#28540
Fixes: nodejs#28539
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Masashi Hirano <shisama07@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
@cjihrig cjihrig merged commit 7cf6f9e into nodejs:master Jul 7, 2019
@cjihrig cjihrig deleted the promise branch July 7, 2019 15:31
targos pushed a commit that referenced this pull request Jul 20, 2019
This commit prevents a deprecation warning from being emitted
if the unhandledRejection event was actually handled.

PR-URL: #28540
Fixes: #28539
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Masashi Hirano <shisama07@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This was referenced Jul 23, 2019
ehmicky added a commit to ehmicky/log-process-errors that referenced this pull request Jul 31, 2019
It's due to a bug introduced in Node 12.6.0 but fixed in 12.7.0

nodejs/node#28540
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. process Issues and PRs related to the process subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unhandled promise rejection deprecation message is printed even when there's an unhandledRejection listener
7 participants