index.js
function makePromise(requestInstance, promiseFactoryFn) {

  // Resolver function wich assigns the promise (resolve, reject) functions
  // to the requestInstance
  function Resolver(resolve, reject) {
    this._resolve = resolve;
    this._reject = reject;
  }

  return promiseFactoryFn(Resolver.bind(requestInstance));
}
function makePromise(requestInstance, promiseFactoryFn) {

  // Resolver function wich assigns the promise (resolve, reject) functions
  // to the requestInstance
  function Resolver(resolve, reject) {
    this._resolve = resolve;
    this._reject = reject;
  }

  return promiseFactoryFn(Resolver.bind(requestInstance));
}
function makePromise ( requestInstance , promiseFactoryFn ) { // Resolver function wich assigns the promise (resolve, reject) functions // to the requestInstance function Resolver ( resolve , reject ) { this . _resolve = resolve ; this . _reject = reject ; } return promiseFactoryFn ( Resolver . bind ( requestInstance ) ) ; }
It calls the promiseFactory function passing it the resolver for the promise

@param {Object} requestInstance - The Request Retry instance
@param {Function} promiseFactoryFn - The Request Retry instance
@return {Object} - The promise instance
It calls the promiseFactory function passing it the resolver for the promise