decord/source/__polyfill/04xxx/module_4886.js
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

31 lines
976 B
JavaScript

// Module ID: 4886
// Function ID: 4887
// Dependencies: [4884, 1455, 1281, 4887, 4890, 4893, 4960]
// Module 4886
import _mod1281 from "module_1281" /* 1281 */;
import requirePromise from "requirePromise" /* 4884 */;
import callBind_mod from "callBind" /* 1455 */;
requirePromise();
let callBind = callBind_mod;
let closure_2 = callBind(_mod1281("%Promise.all%"));
let callBind = callBind_mod;
let closure_3 = callBind(_mod1281("%Promise.reject%"));
export default function allSettled(arg0) {
const self = this;
if ("Object" !== self(4887)(this)) {
const _TypeError = TypeError;
const typeError = new TypeError("`this` value must be an object");
throw typeError;
} else {
return closure_2(this, tmp(4893)(tmp(4890)(arg0), (arg0) => {
try {
return promise.then((value) => ({ status: "fulfilled", value }), (reason) => ({ status: "rejected", reason }));
} catch (tmp3) {
return closure_3(tmp, tmp3);
}
}));
}
};