Skip to content

Commit

Permalink
ref(replay): Streamline rrweb internal error check
Browse files Browse the repository at this point in the history
I think we don't really need this anymore, and this doesn't even work anyhow in any minified scenario, so we can safe these bundle bytes & also the work to check this on each error.
  • Loading branch information
mydea committed Oct 27, 2023
1 parent 43ddbbe commit b31cf70
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/replay/src/util/isRrwebError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,5 @@ export function isRrwebError(event: Event, hint: EventHint): boolean {
return true;
}

// Check if any exception originates from rrweb
return event.exception.values.some(exception => {
if (!exception.stacktrace || !exception.stacktrace.frames || !exception.stacktrace.frames.length) {
return false;
}

return exception.stacktrace.frames.some(frame => frame.filename && frame.filename.includes('/rrweb/src/'));
});
return false;
}

0 comments on commit b31cf70

Please sign in to comment.