On Fri, Aug 2, 2013 at 4:02 PM, Domenic Denicola
<dome...@domenicdenicola.com> wrote:
> I know the answer will be obvious when I see it, but I can't quite remember 
> ... why is it important that `O[privateSymbol]` not invoke the proxy?

We don't want to leak the privateSymbol to a proxy.

module 'foo' {
  var privateSymbol = ...;
  export function tag(object) {
    object[privateSymbol] = true;
  }
  export function hasTag(object) {
    return !!object[privateSymbol];
  }
}

If someone passes a proxy into tag/hasTag the privateSymbol object
must not be passed to the proxy handler.

-- 
erik
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to