Skip to content

Commit 482766c

Browse files
committed
fixes JAVASCRIPT-2NN5 getsentry/sentry-javascript#8950
1 parent 119368f commit 482766c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/rrweb/src/record/error-handler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ export const callbackWrapper = <T extends Callback>(cb: T): T => {
2525
return cb(...rest);
2626
} catch (error) {
2727
if (errorHandler && errorHandler(error) === true) {
28-
return;
28+
return () => {
29+
// This will get called by `record()`'s cleanup function
30+
};
2931
}
3032

3133
throw error;

0 commit comments

Comments
 (0)