It should work. Please post the a complete reproduction of the problem that can be compiled: example above should not compile because Set expects a handle not a raw number.
Vyacheslav Egorov On Fri, Dec 7, 2012 at 3:24 PM, Paul Harris <[email protected]> wrote: > Hi, > > How do I do the equivalent of: > var x = [1,2,3]; > x.length = 1; // THIS BIT > > I tried doing > Array * target = etc; > target->Set( String::NewSymbol("length"), 1 ); > but that didn't work as expected, or crashed in the case of zero. > > ideas? > Thanks, > Paul > > -- > 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
