decord/source/851_instrumentUnhandledRejection.js

38 lines
1.3 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 851
// Function ID: 852
// Name: instrumentUnhandledRejection
// Dependencies: [850, 821]
// Module 851 (instrumentUnhandledRejection)
2026-08-24 06:08:38 +00:00
import _mod821 from "module_821" /* 821 */;
import addHandler from "addHandler" /* 850 */;
require = arg1;
2026-07-29 08:29:29 +00:00
const dependencyMap = arg6;
function instrumentUnhandledRejection() {
2026-08-24 06:08:38 +00:00
const onunhandledrejection = _mod821.GLOBAL_OBJ.onunhandledrejection;
_mod821.GLOBAL_OBJ.onunhandledrejection = function(arg0) {
2026-07-29 08:29:29 +00:00
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;
}
};
2026-08-24 06:08:38 +00:00
_mod821.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;
2026-07-29 08:29:29 +00:00
}
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
let c2 = null;
arg5.addGlobalUnhandledRejectionInstrumentationHandler = function addGlobalUnhandledRejectionInstrumentationHandler(arg0) {
2026-08-24 06:08:38 +00:00
addHandler.addHandler("unhandledrejection", arg0);
const obj = addHandler;
addHandler.maybeInstrument("unhandledrejection", instrumentUnhandledRejection);
2026-07-29 08:29:29 +00:00
};