I'm not really familiar with V8, but this worked for me and provided stack traces in the exception messages when the stack trace was included with the exception - throw Error("message") will include an exception, throw "string error" will not.
I tried doing the same thing with the call to Compile(), but that never seemed to include a stack trace (or wasn't accessible via this method).
I'm not really familiar with V8, but this worked for me and provided stack traces in the exception messages when the stack trace was included with the exception -
throw Error("message")
will include an exception,throw "string error"
will not.I tried doing the same thing with the call to
Compile()
, but that never seemed to include a stack trace (or wasn't accessible via this method).