decord/source/7351_instrumentUnhandledRejection.js

34 lines
1.3 KiB
JavaScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 7351
// Function ID: 7352
2026-07-29 08:29:29 +00:00
// Name: instrumentUnhandledRejection
2026-08-05 07:35:12 +00:00
// Dependencies: [7345, 7348]
2026-07-29 08:29:29 +00:00
2026-08-05 07:35:12 +00:00
// Module 7351 (instrumentUnhandledRejection)
2026-07-29 08:29:29 +00:00
const require = arg1;
const dependencyMap = arg6;
function instrumentUnhandledRejection() {
2026-08-05 07:35:12 +00:00
const onunhandledrejection = require(7348) /* getGlobalSingleton */.GLOBAL_OBJ.onunhandledrejection;
require(7348) /* getGlobalSingleton */.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-05 07:35:12 +00:00
require(7348) /* getGlobalSingleton */.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;
2026-07-29 08:29:29 +00:00
}
let c2 = null;
arg5.addGlobalUnhandledRejectionInstrumentationHandler = function addGlobalUnhandledRejectionInstrumentationHandler(arg0) {
2026-08-05 07:35:12 +00:00
require(7345) /* addHandler */.addHandler("unhandledrejection", arg0);
const obj = require(7345) /* addHandler */;
require(7345) /* addHandler */.maybeInstrument("unhandledrejection", instrumentUnhandledRejection);
2026-07-29 08:29:29 +00:00
};