code: function deferredAdopt(deferred, state, value) {
    if (deferred) {
      var promise = deferred.promise;
      promise._state = state;
      promise._value = value;
    }
  }
docs: 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