You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
huazhiyu/node_modules/core-js/actual/promise/with-resolvers.js

13 lines
460 B

'use strict';
require('../../modules/es.promise');
require('../../modules/esnext.promise.with-resolvers');
var call = require('../../internals/function-call');
var isCallable = require('../../internals/is-callable');
var path = require('../../internals/path');
var Promise = path.Promise;
var promiseWithResolvers = Promise.withResolvers;
module.exports = function withResolvers() {
return call(promiseWithResolvers, isCallable(this) ? this : Promise);
};