Skip to content

Commit

Permalink
add links to comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsterkatie committed Aug 5, 2021
1 parent 2b4d0a8 commit b5e2088
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/utils/src/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ function getWalkSource(
[key: string]: any;
} = {};

// Accessing event attributes can throw (see https://github.com/getsentry/sentry-javascript/issues/768 and
// https://github.com/getsentry/sentry-javascript/issues/838), but accessing `type` hasn't been wrapped in a
// try-catch in at least two years and no one's complained, so that's likely not an issue anymore
source.type = event.type;

// Accessing event.target can throw (see getsentry/raven-js#838, #768)
try {
source.target = isElement(event.target)
? htmlTreeAsString(event.target)
Expand Down

0 comments on commit b5e2088

Please sign in to comment.