Create another thread and have it call v8::V8::TerminateExecution() (with no arguments) after your time limit is reached.
Jeff On Jun 14, 6:31 am, Charles Lowell <[email protected]> wrote: > +1 > I'm also very interested in the cleanest way to do this. > > cheers, > Charles > > On Jun 12, 9:42 pm, Oliver Mattos <[email protected]> wrote: > > > Hi, > > > I'm executing untrusted javascript inside V8, and am having trouble > > with some scripts that take a long time to run. > > > Is there any way I can set an execution time limit of some V8 executed > > script? I'd like to have a way to limit either by time, lines of code > > executed, or something like that. I'd also like to limit memory, and > > any other finite resource that a script could use too much of. > > > Thanks > > Oliver -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
