decord/source/__polyfill/12xxx/module_12927.js
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

43 lines
904 B
JavaScript

// Module ID: 12927
// Function ID: 12928
// Dependencies: [12899]
// Exports: handleCallbackErrors
// Module 12927
import _mod12899 from "module_12899" /* 12899 */;
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 = _mod12899;
})(fn(), arg1, fn);
} catch (tmp5) {
tmp3(tmp5);
tmp2();
throw tmp5;
}
};