getStack(error)code »
Get an error's stack trace with the error string trimmed.
V8 prepends the string representation of an error to its stack trace.
This function trims the string so that the stack trace can be parsed
consistently with the other JS engines.
Parameters
- error
Error The error.
Returns
stringThe stack trace string.