tc39 / proposal-signals

A proposal to add signals to JavaScript.
MIT License
2.95k stars 54 forks source link

cross realm signals #219

Open mhofman opened 3 weeks ago

mhofman commented 3 weeks ago

What is the expected interactions of signals across realms, whether the callable boundary of ShadowRealms is involved or not.

In particular:

littledan commented 2 weeks ago

My first thought is, to stay conservative, we should make tracked reads throw when the current computed is from a different Realm. This will ensure that Realms do not have entangled dependency graphs (which, in the case of ShadowRealms, would give us something a bit unworkable when it comes to introspection).