Skip to content

Commit bc0b5d3

Browse files
committed
fix comments
1 parent 581fe1e commit bc0b5d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/utils-hoist/instrument/globalError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function addGlobalErrorInstrumentationHandler(handler: (data: HandlerData
2020
function instrumentError(): void {
2121
_oldOnErrorHandler = GLOBAL_OBJ.onerror;
2222

23-
// Note: The reason we are doing window.onerror instead of window.addEventListener('error') is
23+
// Note: The reason we are doing window.onerror instead of window.addEventListener('error')
2424
// is that we are using this handler in the Loader Script, to handle buffered errors consistently
2525
GLOBAL_OBJ.onerror = function (
2626
msg: string | object,

packages/core/src/utils-hoist/instrument/globalUnhandledRejection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function addGlobalUnhandledRejectionInstrumentationHandler(
2121
function instrumentUnhandledRejection(): void {
2222
_oldOnUnhandledRejectionHandler = GLOBAL_OBJ.onunhandledrejection;
2323

24-
// Note: The reason we are doing window.onerror instead of window.addEventListener('unhandledrejection') is
24+
// Note: The reason we are doing window.onunhandledrejection instead of window.addEventListener('unhandledrejection')
2525
// is that we are using this handler in the Loader Script, to handle buffered rejections consistently
2626
GLOBAL_OBJ.onunhandledrejection = function (e: unknown): boolean {
2727
const handlerData: HandlerDataUnhandledRejection = e;

0 commit comments

Comments
 (0)