Robin Cafolla (2015-03-25T06:40:34.000Z)
d at domenic.me (2015-04-14T22:05:19.640Z)
I was wondering if there were any plans to modify `arguments` to include default parameters (e.g. changing it from a simpleParameterList) or to include a new property that does allow iteration of all values available to a function. for example: function foo( a, b = 2 ) { return arguments; } console.log( foo( 1 ) ); // outputs [ 1 ], not [ 1, 2 ] Currently I can't see a way of getting default parameters as an iterable object. I filed a bug with Mozilla over this, but they pointed out that the behaviour matches the spec. https://bugzilla.mozilla.org/show_bug.cgi?id=1144672