>
> void  showprop(const char * name)
> {
> v8::Local<v8::Name> val = v8::String::NewFromUtf8(m_Isolate, name);
> Local<Object> obj = val->ToObject(m_Context).ToLocalChecked();
>

This is the C++ equivalent of the following JavaScript:
let val = "K";
let obj = Object(val);
So that's not the same as reading the global variable K, which is
presumably what you're trying to do.

Instead of posting the same question on all mailing lists you can find,
please do some research on your own. Please read the embedders
documentation on v8.dev/docs, and study the examples in the samples/
directory. That should give you a general understanding of how to work with
V8's API.

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/CAKSzg3RSkkma7Fewd-j6EO%3DemA8JvscGKUo62E%3DWUc7rSyS6Ug%40mail.gmail.com.

Reply via email to