args[0].As<v8::Array>()


On Tue, Jan 15, 2013 at 3:16 AM, amourfou <[email protected]> wrote:

> In the following source codes, if args[0] is array object, let me know how
> to convert it to v8::Array or handle it.
>
> ... Test(const v8::Arguments& args)
> {
>     ...
>
>     if (args[0]->IsArray() == true)
>     {
>         // ??
>     }
> }
>
>
> The following is script codes.
>
> var a = new Array(5);
> a[0] = 1;
> a[1] = 2;
> a[2] = 3;
> a[3] = 4;
> a[4] = 5;
> Test(a);
>
>  --
> 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