We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c92b3eb commit 51577b8Copy full SHA for 51577b8
packages/utils/src/object.ts
@@ -108,9 +108,11 @@ function getWalkSource(
108
[key: string]: any;
109
} = {};
110
111
+ // Accessing event attributes can throw (see https://github.com/getsentry/sentry-javascript/issues/768 and
112
+ // https://github.com/getsentry/sentry-javascript/issues/838), but accessing `type` hasn't been wrapped in a
113
+ // try-catch in at least two years and no one's complained, so that's likely not an issue anymore
114
source.type = event.type;
115
- // Accessing event.target can throw (see getsentry/raven-js#838, #768)
116
try {
117
source.target = isElement(event.target)
118
? htmlTreeAsString(event.target)
0 commit comments