default this binding for ES-next strict mode.

Axel Rauschmayer axel at
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):


Dr. Axel Rauschmayer
axel at


More information about the es-discuss mailing list