Introduction, comprehensions beyond arrays

Brendan Eich brendan at
Fri May 17 14:14:45 PDT 2013

Just confirming: SpiderMonkey prototypes ES6 arrow function syntax 
without any arguments binding in the arrow body expression or body block:

js> f = (x) => arguments[0]
(x) => arguments[0]
js> f(42)
js> g = (x) => { return arguments[0]; }
(x) => { return arguments[0]; }
js> g(43)
js> arguments[0]
js> arguments[0] = 44
js> f(45)

(Onlookers not in the know: the js shell has a global arguments object 
capturing command-line arguments, which is an empty array in this cited 


More information about the es-discuss mailing list