tc39/proposal-compartments

Cross realms JavaScript value sharing in Isolated Realms

Closed this issue · 2 comments

In recent proposal realms updates, the design of the realm has been updated significantly that non-primitive values no longer be able to be transferred across those isolated realms (only primitive values and callable proxy values are allowed in the case). Whilst there are a lot of non-primitive values across different compartments, like endowments, moduleMap, globalThis, and many more, how would this proposal exchange those arbitrary values across compartments?

Compartments aren't isolated currently. They can share values as they want.

close as answered