There is no way to reset a context. It's probably best to just create a fresh one. Search the archives of this list, this has been asked and answered several times.
On Tue, Sep 29, 2015 at 12:03 PM, Rethish Kumar P.S <[email protected]> wrote: > Hi, > > I have an application which has multiple contexts in an Isolate. The > context pool is preallocated during application init. Each of these > contexts run independent scripts. > > > > Once a script is done with the execution, is there some means to > clear/reset the current context? I would like to reuse the same context for > another script. > > > Also is it worthwhile to use a context pool or create them on the fly? I > have snapshots enabled in the v8 build. > > > Thanks & regards > Rethish > > > > > -- > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
