Proposal About Private Symbol

Domenic Denicola d at
Sun Dec 21 17:01:49 PST 2014

That breaks membranes.
From: Gary Guo<mailto:nbdd0121 at>
Sent: ‎2014-‎12-‎21 20:00
To: Domenic Denicola<mailto:d at>
Cc: es-discuss at<mailto:es-discuss at>
Subject: RE: Proposal About Private Symbol

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
var psym=Symbol('private', true);
var obj={};
var proxy=new Proxy(obj, {
proxy[psym] // without triggering get handler
proxy[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