On Thu, Apr 29, 2010 at 1:30 AM, Robert Ginda <[email protected]> wrote:

> Thanks for the quick reply, but I was hoping to use v8's native parser.
>
> I imagine worst-case I can get a reference to the context's JSON.parse
> function and Function::Call() it, which I'd prefer over adding another
> dependency.
>

The v8 impl appears to be in parser.cc, as part of the Parser class. It's
not in the public API, so if you wanted to use it you'd have to declare the
internal types in your code (or import the v8-private headers) and then pray
that future changes to v8 do not invalidate the hackery.

On second thought - the internals you'd need from parser.cc are not declared
in parser.h, and appear to be private to that file... so good luck!

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

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

Reply via email to