News for hackers. Stuff that matters.
Re:Implementing Private Fields for JavaScript by v413 on Sunday June 13, 2021 @03:40AM (#27490611)
Object properties defined as Symbols (even through classes) are still accessible by e.g. Object.getOwnPropertyDescriptors(myObject)

Before the private fields, it was possible to create private properties through a WeakMap object which is somewhat clumsy and not very performant.

There are no comments on this comment yet.