a789421e759c8fc4bff10fb86a1b53b9bdb12f80c551583ca0953ec3888de3c4ec2b336ab9f2671494acc608a217d65d9c896e8b220dc9d7c53f4ecc58564d 456 B

12345678910111213
  1. 'use strict';
  2. require('../../modules/es.promise');
  3. require('../../modules/es.promise.with-resolvers');
  4. var call = require('../../internals/function-call');
  5. var isCallable = require('../../internals/is-callable');
  6. var path = require('../../internals/path');
  7. var Promise = path.Promise;
  8. var promiseWithResolvers = Promise.withResolvers;
  9. module.exports = function withResolvers() {
  10. return call(promiseWithResolvers, isCallable(this) ? this : Promise);
  11. };