i had similar problems when evaling an include()d file and had to do
some hopping around with the exception catching to make it work how i
wanted. See:
http://code.google.com/p/v8-juice/source/browse/trunk/src/lib/juice/juice.cc
in the IncludeScript() function. Inside the do{...}while(false) loop
you'll see some weird stuff with copying an exception object. That
approach allowed me to get the exception back into my main script,
with line numbers and whatnot intact. No idea if all this is really
required, but "it worked for me."
--
----- stephan beal
http://wanderinghorse.net/home/stephan/
Doh... after looking more closely: At the catch() point i'm getting
the name of eval()'d file and the byte offset of the error, but not an
informational stacktrace. My apologies for the misdirection.
I'm also interested in this problem.