On Mon, Nov 23, 2009 at 12:10 PM, Xiang Zhong <[email protected]> wrote:
> Suppose v8 encounter some fatal exception, like out of memory, and > v8::V8::IsDead() return true. > > Is there a way to re-initialize v8 to make it work as normal without > restarting the program? > > As i understand it (perhaps incorrectly - the docs aren't as clear as they could be!), IsDead() will return true once static destruction of v8 has started. If that is indeed the case, IsDead() will not return true until after main() has returned. This can be important for client-side objects which use v8 but themselves are also subject to destruction post-main(), since the destruction order of those objects is unpredictable. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
