UNPKG

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