-
Notifications
You must be signed in to change notification settings - Fork 63
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
fix(js): move unhandled rejection monitor to a class, fix filter for domainUncaughtExceptionClear #1166
Conversation
}) | ||
}) | ||
|
||
// Seems like it was meant to work this way but was never implemented? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is easy to add to make it match how uncaughtException
works (eg return right away if __isReporting
is true
... but there may be a reason it doesn't do that... leaning toward minimal change with this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 I don't remember. So, now it was changed to return is __isReporting
is true
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided not to change how this was working in this PR.
__isReporting
is only used when enableUnhandledRejection
is false... this seems like it was probably an oversight but it may have been for a good reason... it's difficult to know when there were no tests or comments written.
Happy to re-examine, but I was hoping to keep this PR to just a change in the format of the unhandled rejection code and adding the tests rather than changing the logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's an issue to review this! #1167
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️ I love seeing all these tests!
Status
READY
Description
Closes #1165
Makes the format of the unhandled rejection listener match that of the uncaught exception listener and adds unit tests.
I also noticed that the filter for domainUncaughtExceptionClear needed unit tests and was missing the
return
keyword.Todos
Steps to Test or Reproduce
Outline the steps to test or reproduce the PR here.