Brendan Eich wrote:
Object.freeze deals in certain observables. It does not free

("freeze", of course.)

closure state, or weakmap-encoded state, or (per the ES6 proposal) private-symbol-named property state where such properties already exist. Those are not directly observable by the reflection API.

Your -- as in You the abstraction implementor -- may indeed make such state observable. That's a feature. Think of const methods with mutable this members in C++.

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to