I recall that this used to work, but I'm not sure at exactly which
revision it has regressed.
The below code fragment assumes "tc" is a TryCatch object... (eg:
const v8::TryCatch &tc)
v8::Handle<v8::Message> excp_message = tc.Message();
v8::Handle<v8::Value> v8_scriptname( excp_message-
>GetScriptResourceName() );
int line_num( excp_message->GetLineNumber() );
For some reason the results of this are always "1" now, and the "line"
it returns is the entire script! Have there been any internal changes
in line tokenising? Bug?
Regards,
-A
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---