Re: [v8-users] Trying to share the JS Realm between v8 contexts

2025-02-15 Thread guest271314
In the browser there are WHATWG Transferable Streams which provides a means to read and write to different context using WHATWG Streams, for example using the readable and writable pairs of a TransformStream. Effectively meaning it's possible to communicate between an iframe and a window or a w

Re: [v8-users] Trying to share the JS Realm between v8 contexts

2025-02-14 Thread J Decker
On Thu, Feb 13, 2025 at 2:23 AM Charles Lew wrote: > I'm seeking for a way to share the same JSRealm with different v8 > contexts, so they share the same `Object` values in memory, but with > different global values. > > Currently when evaluating `a instanceof Object` with `a` value defined > fro

Re: [v8-users] Trying to share the JS Realm between v8 contexts

2025-02-13 Thread Ben Noordhuis
On Thu, Feb 13, 2025 at 11:23 AM Charles Lew wrote: > > I'm seeking for a way to share the same JSRealm with different v8 contexts, > so they share the same `Object` values in memory, but with different global > values. > > Currently when evaluating `a instanceof Object` with `a` value defined f

[v8-users] Trying to share the JS Realm between v8 contexts

2025-02-13 Thread Charles Lew
I'm seeking for a way to share the same JSRealm with different v8 contexts, so they share the same `Object` values in memory, but with different global values. Currently when evaluating `a instanceof Object` with `a` value defined from another context, this evaluates to false, which is not what