Wow! I didn't know ThrowException actually returns an empty handle! Thanks a lot for this hint!
On Mar 16, 2:19 pm, Stephan Beal <[email protected]> wrote: > On Fri, Mar 16, 2012 at 12:28 PM, avasilev <[email protected]> wrote: > > Yes, that's what my function does - returns via ThrowException. But it > > returns not to js, but to my calling code. Then my calling code needs > > to know if the returned Value is returned via ThrowException, and if > > it is, return this value to Js immediately. I guess ThrowException > > The heuristic i've used to far, which "seems to work for me", is: > > if( rc.IsEmpty() ) return rc /* _assume_ exception */; > > i don't know of any API other than ThrowException which explicitly returns > an empty handle? But i know i'm making a rather large assumption there. But > as i said, "works for me [so far]." > > > just sets some flag in the context, that tells v8 to treat the value > > returned by the native call as exception. Basically, I need a way to > > check this flag, or something like this. > > +1 > > -- > ----- stephan > bealhttp://wanderinghorse.net/home/stephan/http://gplus.to/sgbeal -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
