Closed leobalter closed 3 years ago
What if an exotic object removes the property but adds it back in the future?
@Jack-Works then the global object is not an ordinary object :)
Is there any invariant anywhere that says the host cannot add properties to an ordinary object, in particular globalThis
in an "unexpected way", e.g. without any user code invoking a host function or host hook executing.
I don't think any host currently does this, but if a host mutates the global context of its own accord after the initial user code executes, it would enable a lockdown bypass.
There is a provision that within a realm the globalThis must be an ordinary object
On Wed, Jun 9, 2021 at 9:45 PM Jack Works @.***> wrote: