I believe the proper course of action is the check if the return value is empty, and if it is, look at try_catch.HasCaught(). This is, at least, the way I have seen it in examples, and the way I have implemented it myself.
Alex On May 1, 2009, at 8:00 AM, Ryan Dahl wrote: > >> The result will be empty if an exception occoured. You can use a >> stack >> allocated v8::TryCatch in C++ to catch exceptions. >> Take a look at the test "FunctionCall" in test/cctest/test-api.cc. > > Which is better: checking if the return value is empty or using > try_catch.HasCaught() ? > > > Alex Iskander, TPSi --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
