[PROPOSAL] "use" keyword

Rick Waldron waldron.rick at gmail.com
Fri Jul 25 14:17:10 PDT 2014


On Fri, Jul 25, 2014 at 4:57 PM, Michaël Rouges <michael.rouges at gmail.com>
wrote:

> Um, no, I was thinking something like :
>
> ```
> var fn;
>
> fn = function fn() {
>     // After the context is attached fn scope already knows "shared"
> };
>
> (function () {
>     var shared;
>
>     shared = 'message';
>
>     fn.attachContext();
> }());```
>
>
It's as if attachContext creates pointers to all bindings in the Lexical
and Variable Environment? If any of those bindings are for references, this
creates an object capabilities leak.

Rick










>
> Michaël Rouges - https://github.com/Lcfvs - @Lcfvs
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140725/fb11be15/attachment.html>


More information about the es-discuss mailing list