code: function setRecord(state, record) {
    Object.defineProperty(state, 'record', {value: record, writable: true, configurable: true, enumerable: false});
  }
docs: Sets the given record on the given state that is being tracked for a message or unusable record.
  @param {MessageState|UnusableRecordState} state - the tracked state to be updated
  @param {Record} record - the record to link to the state