Marius Gundersen (2013-06-27T10:19:43.000Z)
github at esdiscuss.org (2013-07-12T02:27:37.402Z)
I'm testing some code in the latest version of Firefox, and it seems I'm not able to define default values to function arguments which are destructured. For example: ```js function test([a, b] = [1, 2]){ return a+b; } test([3, 4])//expect 7 test([3])//expect NaN test()//expect 3 //Exception: missing ) after formal parameters (line 1) ``` I haven't found this defined in the current grammar, but would be useful for something I'm currently working on. Or maybe it just isn't implemented in Firefox?