decord/source/__polyfill/12xxx/module_12961.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

43 lines
904 B
JavaScript

// Module ID: 12961
// Function ID: 12962
// Dependencies: [12933]
// Exports: handleCallbackErrors
// Module 12961
import _mod12933 from "module_12933" /* 12933 */;
require = arg1;
const dependencyMap = arg6;
export const handleCallbackErrors = function handleCallbackErrors(fn, arg1) {
fn = arg2;
if (arg2 === undefined) {
fn = function t() {
};
}
try {
return (function maybeHandlePromiseRejection(promise, arg1, fn) {
closure_0 = arg1;
closure_1 = fn;
if (obj.isThenable(promise)) {
return promise.then((result) => {
closure_1();
return result;
}, (arg0) => {
closure_0(arg0);
closure_1();
throw arg0;
});
} else {
fn();
return promise;
}
obj = _mod12933;
})(fn(), arg1, fn);
} catch (tmp5) {
tmp3(tmp5);
tmp2();
throw tmp5;
}
};