Determines a way to send a reply back from an incoming eval request.

@param  {Object} request   An object returned from {getSenderIdentifier}

@return {Function}         A function that act like ipc.send, but to a
particular process.

@private
function getReplyMethod(request) {
  let target = findTargetFromParentInfo(request);

  if (target) {
    return (...a) => {
      if ('isDestroyed' in target && target.isDestroyed()) return;
      target.send(...a);
    };
  } else {
    d("Using reply to main process");
    return (...a) => ipc.send(...a);
  }
}