Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
31 lines
976 B
JavaScript
31 lines
976 B
JavaScript
// Module ID: 4882
|
|
// Function ID: 4883
|
|
// Dependencies: [4880, 1454, 1282, 4883, 4886, 4889, 4956]
|
|
|
|
// Module 4882
|
|
import _mod1282 from "module_1282" /* 1282 */;
|
|
import requirePromise from "requirePromise" /* 4880 */;
|
|
import callBind_mod from "callBind" /* 1454 */;
|
|
|
|
requirePromise();
|
|
let callBind = callBind_mod;
|
|
let closure_2 = callBind(_mod1282("%Promise.all%"));
|
|
let callBind = callBind_mod;
|
|
let closure_3 = callBind(_mod1282("%Promise.reject%"));
|
|
|
|
export default function allSettled(arg0) {
|
|
const self = this;
|
|
if ("Object" !== self(4883)(this)) {
|
|
const _TypeError = TypeError;
|
|
const typeError = new TypeError("`this` value must be an object");
|
|
throw typeError;
|
|
} else {
|
|
return closure_2(this, tmp(4889)(tmp(4886)(arg0), (arg0) => {
|
|
try {
|
|
return promise.then((value) => ({ status: "fulfilled", value }), (reason) => ({ status: "rejected", reason }));
|
|
} catch (tmp3) {
|
|
return closure_3(tmp, tmp3);
|
|
}
|
|
}));
|
|
}
|
|
};
|