File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/core/src/utils-hoist/instrument Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export function addGlobalErrorInstrumentationHandler(handler: (data: HandlerData
2020function 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 ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export function addGlobalUnhandledRejectionInstrumentationHandler(
2121function 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 ;
You can’t perform that action at this time.
0 commit comments