--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
The obvious guess is that the JSON parser, which is recursive, actually exhausts the stack while parsing.Do you have a link to the module being parsed?
/L--On Tue, Apr 26, 2011 at 04:29, Sridatta <sthati...@gmail.com> wrote:
I'm trying to call the native JSON parser from my v8 extension.
However, when I do this, I get the following error: "Uncaught
RangeError: Maximum call stack size exceeded". My code can be found
here: https://gist.github.com/941668 . Can someone suggest what I'm
doing wrong?
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
Lasse R.H. Nielsen
l...@google.com
'Faith without judgement merely degrades the spirit divine'
Google Denmark ApS - Frederiksborggade 20B, 1 sal - 1360 København K -
Denmark - CVR nr. 28 86 69 84
I am indeed trying to use V8 from a background thread. Here is a
little more code for context: https://gist.github.com/941913 . (Not
actual code. I simplified it for context).
I want to have a background thread be able to call and access the V8
instance. Is it possible?
Yes. You have to use the v8::Locker class in both the main thread and the background thread. It's a class that does its work in the constructor and the destructor. See include/v8.h for a description of its use.