decord/source/__polyfill/12xxx/module_12936.js
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

35 lines
1.2 KiB
JavaScript

// Module ID: 12936
// Function ID: 12937
// Dependencies: [12930, 12933]
// Exports: addGlobalUnhandledRejectionInstrumentationHandler
// Module 12936
import _mod12930 from "module_12930" /* 12930 */;
import _mod12933 from "module_12933" /* 12933 */;
require = arg1;
const dependencyMap = arg6;
function instrumentUnhandledRejection() {
onunhandledrejection = _mod12933.GLOBAL_OBJ.onunhandledrejection;
_mod12933.GLOBAL_OBJ.onunhandledrejection = function(arg0) {
_mod12930.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);
}
}
};
_mod12933.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;
}
let onunhandledrejection = null;
export const addGlobalUnhandledRejectionInstrumentationHandler = function addGlobalUnhandledRejectionInstrumentationHandler(arg0) {
_mod12930.addHandler("unhandledrejection", arg0);
_mod12930.maybeInstrument("unhandledrejection", instrumentUnhandledRejection);
};