decord/source/7780_instrumentUnhandledRejection.js
2026-08-24 06:08:38 +00:00

36 lines
1.3 KiB
JavaScript

// Module ID: 7780
// Function ID: 7781
// Name: instrumentUnhandledRejection
// Dependencies: [7774, 7777]
// Module 7780 (instrumentUnhandledRejection)
import addHandler from "addHandler" /* 7774 */;
import getGlobalSingleton from "getGlobalSingleton" /* 7777 */;
require = arg1;
const dependencyMap = arg6;
function instrumentUnhandledRejection() {
const onunhandledrejection = getGlobalSingleton.GLOBAL_OBJ.onunhandledrejection;
getGlobalSingleton.GLOBAL_OBJ.onunhandledrejection = function(arg0) {
callback(table[0]).triggerHandlers("unhandledrejection", arg0);
if (!onunhandledrejection) {
return !onunhandledrejection;
} else {
const self = this;
const apply = onunhandledrejection.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
const tmp2 = onunhandledrejection;
}
};
getGlobalSingleton.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;
}
let c2 = null;
arg5.addGlobalUnhandledRejectionInstrumentationHandler = function addGlobalUnhandledRejectionInstrumentationHandler(arg0) {
addHandler.addHandler("unhandledrejection", arg0);
const obj = addHandler;
addHandler.maybeInstrument("unhandledrejection", instrumentUnhandledRejection);
};