Skip to content

Commit

Permalink
fixes JAVASCRIPT-2NN5 getsentry/sentry-javascript#8950
Browse files Browse the repository at this point in the history
  • Loading branch information
billyvg committed Sep 20, 2023
1 parent a31696b commit a5b873f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/rrweb/src/record/error-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export const callbackWrapper = <T extends Callback>(cb: T): T => {
return cb(...rest);
} catch (error) {
if (errorHandler && errorHandler(error) === true) {
return;
return () => {
// This will get called by `record()`'s cleanup function
};
}

throw error;
Expand Down

0 comments on commit a5b873f

Please sign in to comment.