Re: EcmaScript Proposal – Private methods and fields proposals.

T.J. Crowder tj.crowder at farsightsoftware.com
Sat Apr 14 07:21:29 UTC 2018


> Just an item of note: `private` *is* a valid identifier name in sloppy
> mode, so your `private(this)` and `private["foo"]` syntax won't work
> without banning it from sloppy.

`class` code is always strict[1].

-- T.J. Crowder

[1]: https://tc39.github.io/ecma262/#sec-class-definitions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180414/72fcbc3d/attachment.html>


More information about the es-discuss mailing list