decord/source/__polyfill/13xxx/module_13043.js
github-actions 8d58bae3b2 chore: update source for alpha 347.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4907.js (118.4 MB)
2026-09-18 06:58:00 +00:00

35 lines
1.2 KiB
JavaScript

// Module ID: 13043
// Function ID: 13044
// Dependencies: [13037, 13040]
// Exports: addGlobalUnhandledRejectionInstrumentationHandler
// Module 13043
import _mod13037 from "module_13037" /* 13037 */;
import _mod13040 from "module_13040" /* 13040 */;
require = arg1;
const dependencyMap = arg6;
function instrumentUnhandledRejection() {
onunhandledrejection = _mod13040.GLOBAL_OBJ.onunhandledrejection;
_mod13040.GLOBAL_OBJ.onunhandledrejection = function(arg0) {
_mod13037.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);
}
}
};
_mod13040.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;
}
let onunhandledrejection = null;
export const addGlobalUnhandledRejectionInstrumentationHandler = function addGlobalUnhandledRejectionInstrumentationHandler(arg0) {
_mod13037.addHandler("unhandledrejection", arg0);
_mod13037.maybeInstrument("unhandledrejection", instrumentUnhandledRejection);
};