Skip to content

Instantly share code, notes, and snippets.

@mraleph
Created February 13, 2011 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mraleph/825124 to your computer and use it in GitHub Desktop.
Save mraleph/825124 to your computer and use it in GitHub Desktop.
Local<Object> obj = args[1]->ToObject();
Local<Array> names = obj->GetPropertyNames();
uint32_t length = names->Length();
for (uint32_t i = 0; i < length; i++) {
HandleScope loop_scope;
Local<String> name = names->Get(i)->ToString();
Local<Value> value = obj->Get(name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment