On Sun, Nov 29, 2009 at 8:46 AM, Xavier Shay <[email protected]> wrote:

>    Local<Array> input = args[0].ToArray(); // what is the correct
>

Local<Array> a = Local<Array>( Array::Cast(*args[0]))

should do the trick.

ONLY use the various Cast operations IFF the corresponding IsXXX() function
returns true. If you violate that, a segfault will follow.

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

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

Reply via email to