2026-08-05 07:35:12 +00:00
|
|
|
// Module ID: 7382
|
|
|
|
|
// Function ID: 7383
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: handleCallbackErrors
|
2026-08-05 07:35:12 +00:00
|
|
|
// Dependencies: [7354]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-05 07:35:12 +00:00
|
|
|
// Module 7382 (handleCallbackErrors)
|
2026-07-23 10:11:24 +00:00
|
|
|
const require = arg1;
|
|
|
|
|
const dependencyMap = arg6;
|
2026-07-20 16:05:17 +00:00
|
|
|
arg5.handleCallbackErrors = function handleCallbackErrors(arg0, arg1) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let fn = arg2;
|
|
|
|
|
if (arg2 === undefined) {
|
|
|
|
|
fn = function t() {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
try {
|
2026-07-23 10:11:24 +00:00
|
|
|
return (function maybeHandlePromiseRejection(promise, arg1, fn) {
|
2026-07-29 08:29:29 +00:00
|
|
|
const callback = arg1;
|
|
|
|
|
const table = fn;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (obj.isThenable(promise)) {
|
|
|
|
|
return promise.then((arg0) => {
|
2026-07-23 10:11:24 +00:00
|
|
|
callback2();
|
2026-07-20 16:05:17 +00:00
|
|
|
return arg0;
|
|
|
|
|
}, (arg0) => {
|
2026-07-23 10:11:24 +00:00
|
|
|
callback(arg0);
|
|
|
|
|
callback2();
|
2026-07-20 16:05:17 +00:00
|
|
|
throw arg0;
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
fn();
|
|
|
|
|
return promise;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = callback(table[0]);
|
|
|
|
|
})(arg0(), arg1, fn);
|
|
|
|
|
} catch (tmp5) {
|
|
|
|
|
tmp3(tmp5);
|
|
|
|
|
tmp2();
|
|
|
|
|
throw tmp5;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|