>>
>> 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
Those are IMHO two different scenarios:
a) return v8::ThrowException() => non-empty handle, undefined value
(suitable for return values from callbacks)
b) new v8::Script("DoesNotExist()")->Run() => empty handle, check TryCatch
O.
>
> "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
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users