On Sun, Jun 10, 2012 at 12:56 AM, Chris Jimison <[email protected]> wrote:
> Handle<Object> result;
> if (sourceFlatten->IsSeqAsciiString()) {
> result = JsonParser<true>::Parse(sourceFlatten);
> } else {
> result = JsonParser<false>::Parse(sourceFlatten);
> }
> return result;
> }
>
i don't think that code accepts Array input.
Why not just get the "JSON" property from the global scope, Cast() it to an
Object, get it's "parse" property, cast it to a Function, and Call() that?
--
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users