B2G/gecko/toolkit/addon-sdk/promise/core.js
/**
 * Returns a promise rejected with a given `reason`.
 */
Returns a promise rejected with a given `reason`.
Returns a promise rejected with a given ` reason ` .
function reject(reason) {
  var deferred = defer();
  deferred.reject(reason);
  return deferred.promise;
}
function reject ( reason ) { var deferred = defer ( ) ; deferred . reject ( reason ) ; return deferred . promise ; }
Returns a promise rejected with a given `reason`.
Returns a promise rejected with a given ` reason ` .