-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Wrong unhandledRejection event #1912
Comments
Without checking I would say this is a bug in V8 for not firing |
@cody does the rejectionHandled event get called too? |
I can't reproduce this in my platform - I only get Update: Nevermind, this reproduces just fine. |
@benjamingr what is your platform ?
|
Who needs to be pinged on the v8 team? |
Can we start with @domenic? |
Before calling this a V8 bug, we need a repro that is independent of the io.js code and just uses the V8 APIs. |
FWIW, the bug cannot be reproduced in Chrome's console |
Fixes: nodejs#1912 PR-URL: nodejs#1952 Reviewed-By: Domenic Denicola <[email protected]> Reviewed-By: Petka Antonov <[email protected]>
This issue should be fixed by a251657 |
The following program reproduces my problem:
This is the output:
First the catch handler gets called, which is expected. But after that the
unhandledRejection
event handler gets called too, which is unexpected to me.If the
//
on the last line are removed, then theunhandledRejection
event handler gets not called. This line should have no effect on the first promise, but apparently it has.Tested with v2.2.1 on OSX and linux.
The text was updated successfully, but these errors were encountered: