decord/source/__polyfill/16xxx/module_16997.js
2026-09-01 10:26:29 +00:00

28 lines
487 B
JavaScript

// Module ID: 16997
// Function ID: 16998
// Dependencies: []
// Module 16997
export default (promise) => {
let fn = arg1;
fn = arg1;
if (!arg1) {
fn = () => {
};
}
return promise.then((arg0) => {
closure_0 = arg0;
return new Promise((arg0) => {
arg0(callback());
}).then(() => closure_0);
}, (arg0) => {
closure_0 = arg0;
return new Promise((arg0) => {
arg0(callback());
}).then(() => {
throw closure_0;
});
});
};