decord/source/6315_instrumentUnhandledRejection.js

28 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 6315
2026-07-27 11:26:19 +00:00
// Function ID: 56768
2026-07-23 10:11:24 +00:00
// Name: instrumentUnhandledRejection
2026-07-25 08:10:48 +00:00
// Dependencies: [6309, 6312]
2026-07-23 10:11:24 +00:00
2026-07-25 08:10:48 +00:00
// Module 6315 (instrumentUnhandledRejection)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
function instrumentUnhandledRejection() {
2026-07-25 08:10:48 +00:00
const onunhandledrejection = require(6312) /* getGlobalSingleton */.GLOBAL_OBJ.onunhandledrejection;
require(6312) /* getGlobalSingleton */.GLOBAL_OBJ.onunhandledrejection = function(arg0) {
2026-07-23 10:11:24 +00:00
outer1_0(outer1_1[0]).triggerHandlers("unhandledrejection", arg0);
let applyResult = !onunhandledrejection;
if (!applyResult) {
const self = this;
applyResult = onunhandledrejection(...arguments);
}
return applyResult;
};
2026-07-25 08:10:48 +00:00
require(6312) /* getGlobalSingleton */.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;
2026-07-23 10:11:24 +00:00
}
let c2 = null;
arg5.addGlobalUnhandledRejectionInstrumentationHandler = function addGlobalUnhandledRejectionInstrumentationHandler(arg0) {
2026-07-25 08:10:48 +00:00
require(6309) /* addHandler */.addHandler("unhandledrejection", arg0);
const obj = require(6309) /* addHandler */;
require(6309) /* addHandler */.maybeInstrument("unhandledrejection", instrumentUnhandledRejection);
2026-07-23 10:11:24 +00:00
};