-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
getsentry/sentry
#60077Labels
Package: vueIssues related to the Sentry Vue SDKIssues related to the Sentry Vue SDK
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/vue
SDK Version
7.80.0
Framework Version
Vue 2
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
I am the maintainer of @nuxtjs/sentry and I have this code in the module:
It duplicates the code that Sentry SDK has in:
| p: 'reason' in e ? e.reason : 'detail' in e && 'reason' in e.detail ? e.detail.reason : e |
Recently I've noticed that my code causes crashes like e.detail is not an Object. (evaluating '"reason"in e.detail') so then I would assume that Sentry's SDK can also crash in the same way. So while I will fix it on my side, the SDK should also do so.
The 'reason' in e ? e.reason : 'detail' in e && 'reason' in e.detail ? e.detail.reason : e can crash because 'reason' in e.detail will crash if e.detail is undefined and there is no truthiness check done against it first.
Expected Result
no crash
Actual Result
crash
Metadata
Metadata
Assignees
Labels
Package: vueIssues related to the Sentry Vue SDKIssues related to the Sentry Vue SDK
Projects
Status
No status