title: Destructuring as second parameter in Firefox
body: <p>I am trying to do a simple example of destructuring on ES6 for a function with default parameters <strong>in Firefox 51</strong>. This works as expected:</p>
  
  <pre><code>const work = ({ param = 'a' }) =&gt; console.log(param);
  work({});
  </code></pre>
  
  <p>However, when we try to do the destructuring as the second parameter:</p>
  
  <pre><code>const nowork = (ignore, { param = 'a' }) =&gt; console.log(param);
  nowork('', {});
  </code></pre>
  
  <p>I get this error in the terminal:</p>
  
  <pre><code>SyntaxError: missing : after property id
  </code></pre>
  
  <p>So the question is, <strong>is anything wrong with my code or is it a Firefox bug</strong>? The same code works on Chrome. <a href="https://jsfiddle.net/franciscop/txdz6heL/" rel="nofollow noreferrer">Test it in JSFiddle</a> (comment/uncomment and open the console).</p>
  
  <p>Edit: note that this is almost the same code as <a href="https://hacks.mozilla.org/2015/05/es6-in-depth-destructuring/" rel="nofollow noreferrer">an example on Mozilla Hacks from 2015</a>.</p>