News for hackers. Stuff that matters.
Re:Use cases for ES6 proxies by iamleppert on Wednesday July 20, 2016 @04:09AM (#12127512)
There's nothing preventing you from defining your private variable, method, whatever within the same scope as your prototype method. That could mean (for commonJS anyways) the same file. As long as you don't export those, they are effectively private.
Re:Use cases for ES6 proxies by Touche on Wednesday July 20, 2016 @07:52AM (#12128283)
Those wouldn't be private to each instance though, they'd be shared by all instances.