2. Private Fields
• Prevent users from relying on internals which may change
• Specified by TC39 (Technical Committee 39)
• Authors: Daniel Ehrenberg (Igalia), Jeff Morrison (Facebook)
• Merged with class field declarations proposal
• Stage 3 (Strawperson, Draft, Candidate, Finished)
• Awaits feedback: https://github.com/tc39/proposal-class-fields
• Available online: https://tc39.es/proposal-class-fields/
2019/12/17
5. Implementation Status
• Introduced in Chrome 74
• “SyntaxError: private fields are not currently supported” in Firefox 71
• Expected with TypeScript 3.7
https://github.com/microsoft/TypeScript/issues/33352
2019/12/17