>> Should func2 define its own HandleScope and then close it before it
>> returns?  Or will everything work out OK in this case?  Or is there
>> altogether some other thing I should be doing?
>
> In my experience, leaving out the scope in func1() is also fine. Maybe
> someone here with more HandleScope experience can counter me on that.

As far as I recall, all C++ JS callbacks (from which FunctionTemplates
are created) are automatically wrapped in a HandleScope by V8. This -
in practice - eliminates most needs for HandleScopes, which
corresponds with your experience.


O.

> --
> ----- 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