Ok figured out the problem when i went restore the modules the context 
wrapper class hand't had the global set yet and thus was empty when the 
code tried to use the created context. Fixed and my entire question is moot 
as when retesting creating a second context from the sanpshot on a non 
default one it had no problem with reloading the module data for the second 
one as well.

On Thursday, January 2, 2025 at 11:42:25 AM UTC+8 Ronald Fenner wrote:

> Apparently when i updated my test to add the second creation i goofed and 
> named the first one 2 confusing me into thinking it was the second one that 
> was having an issue when in reality it's the first one having an issue.
> For some reason when i try to get the data it's empty and tripping the 
> dcheck which is weird cause i can see that from the data saved in the 
> additional data i store to recover it it was marked as saved with an index 
> of 0.
>
> Anyone have any ideas on why it would be empty. I guess I'll have to make 
> sure the global really has a value though i check to see if it's empty and 
> only save if it's not.
>
> On Thursday, January 2, 2025 at 8:29:46 AM UTC+8 Ronald Fenner wrote:
>
>> I was wondering if additional contextes added to the snapshot are to only 
>> be loaded once from the snapshot. I was testing if i could load one a 
>> second time mainly because of the get data from context where i stored the 
>> handles for the modules i was tracking as loaded into and as I suspected it 
>> failed since they had already been fetched from the first creation of it.
>>
>> I'm guessing based on the behavior that the second context may just in a 
>> sense be a pointer to the first one loaded and thus it's just a duplicate 
>> handle to it.
>>
>> If not is there a way to reaquire the handle to a module from the context 
>> after it's creation perhaps using it's origin auch as you can for other 
>> objects.
>>
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/v8-users/a5ef6ec9-2f74-48d9-877f-ddcbab351077n%40googlegroups.com.

Reply via email to