ajvincent / es-membrane

An ECMAScript implementation of a Membrane, allowing users to dynamically hide, override, or extend objects in JavaScript with controlled effects on the original objects.
ISC License
109 stars 13 forks source link

Test wrapping of Promise objects through a Membrane #193

Open ajvincent opened 5 years ago

ajvincent commented 5 years ago

(This isn't "fix bugs with Promise objects going through a Membrane". This is just gathering data.)

Promises offer delayed values. In particular, if the Promise primordial isn't wrapped, it may offer a way of bypassing the object wrapping of a Membrane.

If there is work to be done to secure Promise objects, that should happen in another ticket, as another case of collection distortions (#190).