Of course it's possible to make C++ objects accessible to JS, that's what
V8's API is for. You'll have to provide accessors for fields you want to
expose. See
https://github.com/v8/v8/wiki/Embedder's-Guide#accessing-dynamic-variables.
On Thu, Mar 16, 2017 at 6:04 PM, Abhishek Singh
Hi,
(responses inline)
> On 16-Mar-2017, at 21:53, Jakob Kummerow wrote:
>
> What do you mean by "native JS JSON"?
>
Apologies, it isn’t technically correct term. I meant javascript object carved
out of string representation.
> JSON ("JavaScript Object Notation") is
Hi,
I'm trying to send JSON data to user supplied JS code, which is executed by
V8. What I've realised is even if user data is JSON marshalled, I've to
explicitly do V8::JSON::Parse on it, so that value received in JS world is
native JS JSON. Is that really necessary? Performance penalty