decord/source/__polyfill/12xxx/module_12894.js
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

35 lines
1.2 KiB
JavaScript

// Module ID: 12894
// Function ID: 12895
// Dependencies: [12888, 12891]
// Exports: addGlobalUnhandledRejectionInstrumentationHandler
// Module 12894
import _mod12888 from "module_12888" /* 12888 */;
import _mod12891 from "module_12891" /* 12891 */;
require = arg1;
const dependencyMap = arg6;
function instrumentUnhandledRejection() {
onunhandledrejection = _mod12891.GLOBAL_OBJ.onunhandledrejection;
_mod12891.GLOBAL_OBJ.onunhandledrejection = function(arg0) {
_mod12888.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);
}
}
};
_mod12891.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;
}
let onunhandledrejection = null;
export const addGlobalUnhandledRejectionInstrumentationHandler = function addGlobalUnhandledRejectionInstrumentationHandler(arg0) {
_mod12888.addHandler("unhandledrejection", arg0);
_mod12888.maybeInstrument("unhandledrejection", instrumentUnhandledRejection);
};