We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f8dd6a commit a66168fCopy full SHA for a66168f
packages/replay/src/integration.ts
@@ -145,8 +145,13 @@ export class Replay implements Integration {
145
// collect fonts, but be aware that `sentry.io` needs to be an allowed
146
// origin for playback
147
collectFonts: true,
148
- errorHandler: (err: Error & {__rrweb__?: boolean}) => {
149
- err.__rrweb__ = true;
+ errorHandler: (err: Error & { __rrweb__?: boolean }) => {
+ try {
150
+ err.__rrweb__ = true;
151
+ } catch (error) {
152
+ // ignore errors here
153
+ // this can happen if the error is frozen or does not allow mutation for other reasons
154
+ }
155
},
156
};
157
0 commit comments