On Scope And Prototype Security

Rick Waldron waldron.rick at gmail.com
Tue Mar 19 17:03:22 PDT 2013

On Tuesday, March 19, 2013, Andrea Giammarchi wrote:

> oh dear ... even the example did not explain ... how can that be ?
> @Rick is not because of my alzheimer that I did **not** freeze the private
> object. I want to manipulate that because that's my object

This wasn't specified in your example code and comments.

> and I want to expose objects that inherits from it without giving anyone
> the possibility to reach my private, own, object!

> I don't want to be able to freeze the object, I don't want anyone "out
> there" to even reach it ... via __proto__ or getPrototypeOf, got it?

Yes, I "got it". Time machines are out of scope for ES6, maybe ES7?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130319/531a7f26/attachment.html>

More information about the es-discuss mailing list