Odd, traceur seems to be fine with function({d=1}){ return d }() === 1 http://jsbin.com/birajevaxi/2/edit
On Fri, Nov 28, 2014 at 9:15 AM, Kevin Smith <zenpars...@gmail.com> wrote: > function({d=1}){} >> function(o){ var d = o instanceof Object && o.d !== undefined ? o.d : 1 } >> > > Not exactly - see my previous post. You've supplied a default > destructuring value, but not a default *parameter* value. > >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss