Thanks 

I already read the documents + check a lot of api.
At the sample code, I read the K object from a specific context.
Why do you say its global? 

In addition, I didn't see any sample or documentation about getting the 
keys from the HiddenClass / Elements data structure 

Oren


On Wednesday, July 1, 2020 at 12:55:37 PM UTC+3, Jakob Kummerow wrote:
>
> 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
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/6ff62d6f-02a8-4bb4-8904-619d76987885o%40googlegroups.com.

Reply via email to