cesanta / v7

Embedded JavaScript engine for C/C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Object access from API

ScriptBasic opened this issue · comments

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.

Yes, take a look at v7_get().

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.