code line, or exact error position. These details may be available via class v8::Message accessible from TryCatch::Message() in function :
V8ContextImpl::Verify(const TryCatch& tryCatch)
if (! tryCatch.Message().IsEmtpy())
- The target scenario where these informations are invaluable in contrast to what the ScriptEngineException actually contains is a compilation error (can't get source line in error)
for (var i = 0; i < 30000; i++ )
- Another scenario where some informations are missing : an Uncaught exception (we can't get stack trace)
The V8 source code documents that the SetCaptureStackTraceForUncaughtExceptions must be enabled for that scenario. It would be great if we could enable these kind of options within clearscript.