You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
I believe the current spec text allows adding private fields to frozen objects.
I think this is fine, since those fields are only exposed to the class which is adding them (and by analogy to proxies), but I wanted to make sure it's a case we'd explicitly considered.
Example:
classFrozen{constructor(){Object.freeze(this);// or `return Object.freeze({});`}}classDerivedextendsFrozen{
#a =0;}newDerived;// works fine!