Comments on Meeting Notes

Brendan Eich brendan at mozilla.com
Wed Dec 12 06:12:23 PST 2012


Axel Rauschmayer wrote:
> Can you explain? What is this copying price and why don’t non-strict 
> functions have to pay it?

Strict functions have an arguments object that does not alias formal 
parameters:

js> function f(x) { print(x); arguments[0] = 42; return x; }
js> f(99)
99
42
js> function g(x) { "use strict"; print(x); arguments[0] = 42; return x; }
js> g(99)
99
99

/be


More information about the es-discuss mailing list