Hi all,

There is any plan around un functionnality like the "use" keyword, in PHP.

Why something like that? Because, in JS, there is no way to inject some
variables,
without touch the this object known in a function.

The lone possible way is with ownmade functions, in the same context, by :

`var test,
    fn;

fn = new Function('value', 'return function (){console.log(value);}');

fn('hello');`

Really boring to share some private variables...



Michaël Rouges - https://github.com/Lcfvs - @Lcfvs
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to