This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/node_modules/promise.allsettled/index.js
2020-11-01 22:46:04 +00:00

26 lines
636 B
JavaScript

'use strict';
var bind = require('function-bind');
var define = require('define-properties');
var requirePromise = require('./requirePromise');
var implementation = require('./implementation');
var getPolyfill = require('./polyfill');
var shim = require('./shim');
requirePromise();
var bound = bind.call(Function.call, getPolyfill());
var rebindable = function allSettled(iterable) {
// eslint-disable-next-line no-invalid-this
return bound(typeof this === 'undefined' ? Promise : this, iterable);
};
define(rebindable, {
getPolyfill: getPolyfill,
implementation: implementation,
shim: shim
});
module.exports = rebindable;