default this binding for ES-next strict mode.

Axel Rauschmayer axel at rauschma.de
Fri Nov 18 13:30:48 PST 2011


> What if we changed the value of `this` inside local function declarations to be the value of this in the outer function.

I’d love this to work!

Alas, the value of `this` has to be determined dynamically. Mark Miller gave a good example why that’s bad (when I recently suggested the same thing):
http://www.mail-archive.com/es-discuss@mozilla.org/msg11194.html

Axel

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com




More information about the es-discuss mailing list