amis-rpc-design/node_modules/core-js/actual/promise/with-resolvers.js
2023-10-07 19:42:30 +08:00

14 lines
460 B
JavaScript

'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);
};