U
U
unclechu2014-07-25 14:56:52
C++ / C#
unclechu, 2014-07-25 14:56:52

How to iterate over a V8 key-value object in C++ (get a list of the object's keys)?

An object of type key-value comes from the callback. How to iterate over such an object in a C++ module? That is, getting the value of the key at each iteration? How to get a value by key is clear:

// retval is Local<Object>
retval->Get(String::New("keyname"));

But how to get a list of keys - I can’t google.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily, 2014-07-25
@unclechu

As far as I understand it is possible to call GetOwnPropertyNames and move from there.
Here is a similar question on SO: stackoverflow.com/a/21992608

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question