promise.js
function deferredAdopt(deferred, state, value) {
  if (deferred) {
    var promise = deferred.promise;
    promise._state = state;
    promise._value = value;
  }
}
function deferredAdopt(deferred, state, value) {
  if (deferred) {
    var promise = deferred.promise;
    promise._state = state;
    promise._value = value;
  }
}
function deferredAdopt ( deferred , state , value ) { if ( deferred ) { var promise = deferred . promise ; promise . _state = state ; promise . _value = value ; } }
Updates a deferred promises state. Necessary for updating an adopting
promise's state when the adoptee resolves.

@param {?Deferred} deferred
@param {function(this:Promise,*=,function(*=),function(*=),Deferred):!Promise} state
@param {*=} value
Updates a deferred promises state . Necessary for updating an adopting promise s state when the adoptee resolves .