sony / v8eval

Multi-language bindings to JavaScript engine V8
MIT License
403 stars 37 forks source link

include stack trace with exceptions where possible #18

Closed kived closed 8 years ago

kived commented 8 years ago

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).

YoshiyukiMineo commented 8 years ago

LGTM. Thank you.