18 lines
802 B
JavaScript
18 lines
802 B
JavaScript
// Metro module 6372 (f6373).
|
|
import { triggerHandlers, addHandler, maybeInstrument } from "./Module6366";
|
|
import { GLOBAL_OBJ } from "./Module6369";
|
|
let onunhandledrejection;
|
|
const instrumentUnhandledRejection = function instrumentUnhandledRejection() {
|
|
onunhandledrejection = GLOBAL_OBJ.onunhandledrejection;
|
|
GLOBAL_OBJ.onunhandledrejection = function(a0) {
|
|
triggerHandlers("unhandledrejection", a0);
|
|
return onunhandledrejection ? onunhandledrejection.apply(this, arguments) : !onunhandledrejection;
|
|
};
|
|
GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;
|
|
};
|
|
onunhandledrejection = null;
|
|
export function addGlobalUnhandledRejectionInstrumentationHandler(a0) {
|
|
addHandler("unhandledrejection", a0);
|
|
maybeInstrument("unhandledrejection", instrumentUnhandledRejection);
|
|
}
|