This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Description
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:
class Frozen {
constructor() {
Object.freeze(this); // or `return Object.freeze({});`
}
}
class Derived extends Frozen {
#a = 0;
}
new Derived; // works fine!
Ping @erights for thoughts.