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.
It just occurred to me that, due to the nature of private-field names, destructuring private fields off an instance into a local binding is not possible with the spec as-is.
I think this could be fixed with a simple tweak to destructuring grammar, though:
const{#pField: pField}=this;
would roughly desguar to
constpField=this.#pField;
Should we include this destructuring grammar in this proposal? Or defer it to a separate proposal?
(I would be in favor of including it if it's as non-controversial as I imagine, defer if it's at all controversial)
kentcdodds, borela, cybairfly and JakobJingleheimerpapb