Looking at the samples/shell.cc code I can see that it's possible to print 
this:

---
./shell x.js 
x.js:3: SyntaxError: Unexpected token ;
return x * ;
            ^
SyntaxError: Unexpected token ;
---

What I'd like to do is programmatically get hold of the string "SyntaxError: 
Unexpected token ;" and of the location of that caret (^) above. This is so 
that I can highlight the word "return" in the window where the user typed 
the code and display the error message in the status line.

Is this possible?

    Thanks, Joel


-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to