Private Names and Methods
brendan at mozilla.org
Fri Apr 6 11:02:07 PDT 2012
Russell Leggett wrote:
> And would result in copying all of the properties from myMixin into
> the object literal.
Including the private-named properties? That would be bad for integrity:
Alice can't give Bob an object-as-capability where the private names
stay private. Bob can suck them out via this hypothetical
spread-in-braces and then abuse them (e.g. to brand a trojan object and
fool Carol into thinking it was from Alice).
More information about the es-discuss