_promise.js 208 B

1234567
  1. // Allow the user to customize the Promise type returned by this library.
  2. var mypromise = global.Promise;
  3. module.exports = function getOrSetPromise(p) {
  4. if (p) { mypromise = p; }
  5. return mypromise;
  6. };