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
44
js> f(45)
44
(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
session.)
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss