code: function enhanceError(error) {
      if (!isError(error)) {
          throw new TypeError("Expected 'error' to be an Error");
      }
  
      error.stackLines = stackTrace.parse(error);
  
      return error;
  }
docs: Enhance an Error by adding a stackLines property that contains only the stack lines of the provided error
  (i.e. no message lines). The stackLines property is an array of V8 CallStack objects.
  
  (Would have preferred to clone the given error but it seems that Object.keys(error) is always empty - so that
  does not work.)
  
  @method enhanceError
  @private
  @param {Error} error an Error
  @return {Error} the given error with an added stackLines property as an array of V8 CallStack objects