Proposal About Private Symbol

Gary Guo nbdd0121 at
Sun Dec 21 16:58:51 PST 2014

I didn't quite get the point when private symbols pass through the proxy. What will cause the problem in such a situation? How about the proxy get/set the target without passing through handler?
For example```jsvar psym=Symbol('private', true);var obj={};var proxy=new Proxy(obj, {    get:function(){console.log('Capture');},    set:function(){console.log('Capture');});proxy[psym] // without triggering get handlerproxy[psym]='sth' // without triggering set handler```Just simply doesn't grant the proxy the right to operate on private symbols

> From: d at
> To: waldron.rick at; nbdd0121 at; es-discuss at
> Subject: RE: Proposal About Private Symbol
> Date: Sat, 20 Dec 2014 20:11:04 +0000
> For more reasons on why a simple "private symbol" approach does not quite work, see

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list