[investigation] can we support live arrays instead of replicating them
caridy opened this issue · 0 comments
caridy commented
There are two main reasons for the current cloning mechanism for arrays:
- it reduces the risk of poisoning (but does not eliminated complete because of array-like objects are very effective replacement).
Array.prototype.length
, which is not a traditional accessor backed up by an internal slot.
Is is possible to solve this in a way that an array instance crossing the membrane can be proxified and its identity preserved by remapping the prototype of the proxy?