-
Notifications
You must be signed in to change notification settings - Fork 167
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
Catch unhandled promise rejection events #72
Comments
Can you submit a pr for this? |
@jh3141 can you submit a pr for this |
Here is a PR: #73 |
Hi @niemyjski Can we close this issue and bump the version please? I'd like to update my deps with a version handling the promises. Thx |
Could you please review this as well |
I confirm that 'Possible unhandled rejections' are still not being caught at this moment. Is there a workaround for this? Thanks. |
I was under the impression that this has been fixed. Can you please add
some tests or send us a demo that fails and let us know under which browser
it fails.
Thanks
-Blake Niemyjski
…On Mon, Sep 9, 2019 at 5:02 AM adams-family ***@***.***> wrote:
I confirm that 'Possible unhandled rejections' are still not being caught
at this moment. Is there a workaround for this? Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#72?email_source=notifications&email_token=AAHZFI7BIHFYZJWLWWFURGLQIYNJZA5CNFSM4D5ULO32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6G7A5A#issuecomment-529395828>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHZFI2SLR5HTNAWNJK4PRDQIYNJZANCNFSM4D5ULO3Q>
.
|
Hi Blake, |
Since this has been merged is there any plan to tag a new release? |
I've pushed this in a release, sorry for the delay: https://github.com/csnover/TraceKit/releases/tag/v0.4.6 |
Promise rejection events can be caught via the
window.onunhandledrejection
event. If an exception is thrown during processing of a Promise (either during its initial execution phase or during processing a "then" function attached to it), the Promise is rejected and the "reason
" entry in the rejection event will be anError
.reason
may also be any other type, as it will be populated with whatever argument is given in calls to thereject
function of the Promise handler, so will need to be checked before handling. I'm not sure how TraceKit should behave if it catches an unhandled rejection that is not anError
.Support for this feature of Promises isn't great yet, but is improving (see http://caniuse.com/#feat=unhandledrejection).
The text was updated successfully, but these errors were encountered: