decord/source/__polyfill/12xxx/module_12962.js
github-actions a36fe4ec9c chore: update source for alpha 347.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-14 20:04:03 +00:00

43 lines
904 B
JavaScript

// Module ID: 12962
// Function ID: 12963
// Dependencies: [12934]
// Exports: handleCallbackErrors
// Module 12962
import _mod12934 from "module_12934" /* 12934 */;
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 = _mod12934;
})(fn(), arg1, fn);
} catch (tmp5) {
tmp3(tmp5);
tmp2();
throw tmp5;
}
};