decord/source/__polyfill/12xxx/module_12871.js
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

35 lines
1.2 KiB
JavaScript

// Module ID: 12871
// Function ID: 12872
// Dependencies: [12865, 12868]
// Exports: addGlobalUnhandledRejectionInstrumentationHandler
// Module 12871
import _mod12865 from "module_12865" /* 12865 */;
import _mod12868 from "module_12868" /* 12868 */;
require = arg1;
const dependencyMap = arg6;
function instrumentUnhandledRejection() {
onunhandledrejection = _mod12868.GLOBAL_OBJ.onunhandledrejection;
_mod12868.GLOBAL_OBJ.onunhandledrejection = function(arg0) {
_mod12865.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);
}
}
};
_mod12868.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;
}
let onunhandledrejection = null;
export const addGlobalUnhandledRejectionInstrumentationHandler = function addGlobalUnhandledRejectionInstrumentationHandler(arg0) {
_mod12865.addHandler("unhandledrejection", arg0);
_mod12865.maybeInstrument("unhandledrejection", instrumentUnhandledRejection);
};