Files
discord-decomp/_bundle/instrumentUnhandledRejection_6372.js
T
2026-11-01 12:12:55 +02:00

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);
}