Parse the stack of an Error-like object into its components.
The error to parse
The parsed error stack, or undefined if the error has no stack
Parse the stack of an Error-like object into its components.