diff options
Diffstat (limited to 'node_modules/babel-runtime/node_modules/core-js/modules/_promise-resolve.js')
-rw-r--r-- | node_modules/babel-runtime/node_modules/core-js/modules/_promise-resolve.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/node_modules/babel-runtime/node_modules/core-js/modules/_promise-resolve.js b/node_modules/babel-runtime/node_modules/core-js/modules/_promise-resolve.js deleted file mode 100644 index c3cac7646..000000000 --- a/node_modules/babel-runtime/node_modules/core-js/modules/_promise-resolve.js +++ /dev/null @@ -1,12 +0,0 @@ -var anObject = require('./_an-object'); -var isObject = require('./_is-object'); -var newPromiseCapability = require('./_new-promise-capability'); - -module.exports = function (C, x) { - anObject(C); - if (isObject(x) && x.constructor === C) return x; - var promiseCapability = newPromiseCapability.f(C); - var resolve = promiseCapability.resolve; - resolve(x); - return promiseCapability.promise; -}; |