I think it's OK. This is a part of debugger API, because debugger needs to be able to intervent into script execution at arbitrary moments. And you don't need a debug version of V8, you just need to make sure that you compile with ENABLE_DEBUGGER_SUPPORT defined. Debugging JS inside V8 isn't the same as debugging V8 itself.
But using preemption and lockers is a good approach as well. On Fri, Aug 12, 2011 at 19:07, mcot <[email protected]> wrote: > Also... it seems bad to use the debugger api's for this task. For > one, wouldn't you have to compile v8 in debug mode and link against > v8_g? > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
