Wondering if anyone has any good examples of how to properly and quickly
iterate an object keys/values in c++. The best I have come up with so far
is:
const Local<Array> props = obj->GetPropertyNames();
const uint32_t length = props->Length();
for (uint32_t i=0 ; i<length ; ++i)
{
const Local<Value> key = props->Get(i);
const Local<Value> value = obj->Get(key);
}
I feel like this approach is sub optimal in that I don't actually want to
ever use the array of properties beyond getting the keys and values. Is
there some easier way to traverse the object? maybe stl iterator like?
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users