function hashFromStack(stackParser, stack) {
  if (stack === undefined) {
    return undefined;
  }

  return hashFrames(stackParser(stack, 1));
}
We use the stack parser to create a unique hash from the exception stack trace
This is used to lookup vars when the exception passes through the event processor