all-settled.js 446 B

12345678910111213
  1. 'use strict';
  2. require('../../modules/es.promise');
  3. require('../../modules/es.promise.all-settled');
  4. require('../../modules/es.string.iterator');
  5. require('../../modules/web.dom-collections.iterator');
  6. var path = require('../../internals/path');
  7. var Promise = path.Promise;
  8. var $allSettled = Promise.allSettled;
  9. module.exports = function allSettled(iterable) {
  10. return $allSettled.call(typeof this === 'function' ? this : Promise, iterable);
  11. };