I already have a working ObjectTemplate that enables js code to access C++ objects in a lazy fashion, using the NamedPropertyHandler. Now I also need to create v8:Array that is backed by a C++ object using the IndexedPropertyHandler. But it seems that ObjectTemplate can only create a v8::Object, not a v8::Array. Doing an indexed access on v8::Object works fine but then the built-in functions like "forEach" are not available. Basically I need to either: - create a v8::Array with IndexedPropertyHandlers - create a v8::Object with IndexedPropertyHandlers and transfer the builtin methods to it, or somehow convert it to a v8::Array. Note that on C++ side it is not a native type array, so I cannot use the v8::Object::SetIndexedPropertiesToExternalArrayData Any suggestion? thanks
-- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
