decord/source/4374_allSettled.js
2026-07-25 08:10:48 +00:00

27 lines
913 B
JavaScript

// Module ID: 4374
// Function ID: 38804
// Name: allSettled
// Dependencies: [4372, 1379, 517, 4375, 4378, 4381, 4448]
// Module 4374 (allSettled)
import callBind from "callBind";
import callBind from "callBind";
require("requirePromise")();
let closure_2 = callBind(require("getEvalledConstructor")("%Promise.all%"));
let closure_3 = callBind(require("getEvalledConstructor")("%Promise.reject%"));
export default function allSettled(arg0) {
const self = this;
if ("Object" !== self(4375)(this)) {
const _TypeError = TypeError;
const typeError = new TypeError("`this` value must be an object");
throw typeError;
} else {
return callback(this, self(4381)(self(4378)(arg0), (arg0) => self(outer1_1[6])(self, arg0).then(function onFulfill(value) {
return { status: "fulfilled", value };
}, function onReject(reason) {
return { status: "rejected", reason };
})));
}
};