cesanta / v7

Embedded JavaScript engine for C/C++
Other
1.43k stars 177 forks source link

Object access from API #567

Closed ScriptBasic closed 8 years ago

ScriptBasic commented 8 years ago

How does one access an object created in JavaScript code from the API? The properties have a name which I assume I can access them from the API using them.

dimonomid commented 8 years ago

Yes, take a look at v7_get().

ScriptBasic commented 8 years ago

v7_get() only retrieves the properties. I need a way to access the object 'handle' that was created in JavaScript code from my 'C' program.