Have the scope accessible as an object and implement a new with operator / block
rossberg at google.com
Tue Dec 20 05:17:09 PST 2011
On 20 December 2011 11:51, Xavier MONTILLET <xavierm02.net at gmail.com> wrote:
> Well what about you add an if that checks whether scope is used or not
> and if it is disables these optimizations?
That's what's done for things like the `arguments' object. And it's an
ugly mess, in terms of semantics as well as implementation. I believe
it's fair to say that it is widely considered a misfeature these days.
(ES is moving away from it, as well as from the global object.)
More information about the es-discuss