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

On Dec 2, 2010, at 7:02 AM, Stephan Beal wrote:

> On Thu, Dec 2, 2010 at 2:02 PM, Joshua Kifer <[email protected]> wrote:
> The convention is to return the result of ThrowException, which is 
> v8::Undefined.  The downside is that I have to pass back to the caller this 
> information even though it's available hidden in the runtime.  I suppose I'm 
> ok with that.
> 
> Are you sure that it returns Undefined? Undefined is a valid JS value, but an 
> empty handle is not. i was always under the impression (perhaps incorrectly) 
> that ThrowException() returns an empty handle.
> 
> -- 
> ----- 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

Reply via email to