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
20
20
function instrumentError ( ) : void {
21
21
_oldOnErrorHandler = GLOBAL_OBJ . onerror ;
22
22
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')
24
24
// is that we are using this handler in the Loader Script, to handle buffered errors consistently
25
25
GLOBAL_OBJ . onerror = function (
26
26
msg : string | object ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export function addGlobalUnhandledRejectionInstrumentationHandler(
21
21
function instrumentUnhandledRejection ( ) : void {
22
22
_oldOnUnhandledRejectionHandler = GLOBAL_OBJ . onunhandledrejection ;
23
23
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')
25
25
// is that we are using this handler in the Loader Script, to handle buffered rejections consistently
26
26
GLOBAL_OBJ . onunhandledrejection = function ( e : unknown ) : boolean {
27
27
const handlerData : HandlerDataUnhandledRejection = e ;
You can’t perform that action at this time.
0 commit comments