On Thu, Dec 2, 2010 at 4:09 PM, Joshua Kifer <[email protected]> wrote:

> The return value from ThrowException responds to IsUndefined() as true.
>

Then it would appear to act in violation of this documentation:

http://code.google.com/apis/v8/embed.html#exceptions

"V8 will throw an exception if an error occurs - for example, when a script
or function attempts to read a property that does not exist, or if a
function is called that is not a function. V8 returns an empty handle if an
operation did not succeed. It is therefore important that your code checks a
return value is not an empty handle before continuing execution. Check for
an empty handle with the Handle class's public member function IsEmpty()."

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to