Thanks Bryan,

In frustration, before receiving your advice I had supplied the
ScriptOrigin argument to Script::Compile() using
ScriptOrigin( fileName, 0, 0 ) - this causes the entire script to be
listed if a syntax error occurs during compile.

Upon inspection of the Script::Compile() function it appears that the
only difference I caused was to supply a 'resource name' which
defaults to empty if not supplied.

In any case, not supplying the ScriptOrigin argument solves my
problem.

Thanks again

Paul.

On Sep 7, 9:42 pm, "Bryan White" <[EMAIL PROTECTED]> wrote:
> > That set me on the right path. The only problem is that it only works
> > when the verbose flag is set on the trycatch .... and this causes
> > trycatch.Exception() to include the entire script text along with the
> > syntax error. For large scripts, this will be a problem. Oh well,  I
> > have the source code... I might have to do some hacking :-)
>
> I am not seeing that.  I have no clue why you are.
>
> --
> Bryan White
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to