You can access your K object via the context's global object
<https://v8.github.io/api/head/classv8_1_1Context.html#af5cd9f97ef6a3307c1c21f80f4b743eb>,
and then iterate it's properties from there.

On Thu, Jul 2, 2020 at 1:47 PM <[email protected]> wrote:

> i"m trying to get the variable from context / global without success.
>
> Any idea how to do it correctly?
>
>
> On Wednesday, July 1, 2020 at 7:36:48 PM UTC+3, [email protected] wrote:
>>
>> Thanks, I got you.
>> Do you know how I retrieve objects from context?
>>
>> On Wednesday, July 1, 2020 at 1:31:54 PM UTC+3, Jakob Kummerow wrote:
>>>
>>> On Wed, Jul 1, 2020 at 12:13 PM <[email protected]> wrote:
>>>
>>>> Why do you say its global?
>>>>
>>>
>>> After evaluating the string "const K = {...}", K is a global variable
>>> in the provided context.
>>>
>>> At the sample code, I read the K object from a specific context.
>>>
>>>
>>> No, that's not what you're doing. You're creating an object wrapper
>>> around a string "K". That object creation needs a context, but that's not
>>> the same as reading a variable from that context.
>>>
>>> --
> --
> 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/c5187f07-6220-471b-958e-ab12f74bb614o%40googlegroups.com
> <https://groups.google.com/d/msgid/v8-dev/c5187f07-6220-471b-958e-ab12f74bb614o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
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/CAGRskv9ug2aZ86pYX4Oo8G5%3DVPwB_C_urQyZVacCNtVvJ3mgSg%40mail.gmail.com.

Reply via email to