<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Non-helpful SyntaxError message for duplicate parameters in strict mode"
   href="https://bugs.webkit.org/show_bug.cgi?id=106176#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Non-helpful SyntaxError message for duplicate parameters in strict mode"
   href="https://bugs.webkit.org/show_bug.cgi?id=106176">bug 106176</a>
              from <span class="vcard"><a class="email" href="mailto:joepeck&#64;webkit.org" title="Joseph Pecoraro &lt;joepeck&#64;webkit.org&gt;"> <span class="fn">Joseph Pecoraro</span></a>
</span></b>
        <pre>Compare to our error message for classes and arrow functions which force the stricter parsing, these are more helpful because they even note the duplicate parameter:

js&gt; (class { f(a,a){} })
Cannot declare a parameter named 'a' in strict mode as it has already been declared.:1
js&gt; (class { f(a,a){''} })
Cannot declare a parameter named 'a' in strict mode as it has already been declared.:1
js&gt; (class { f(a,a){return a} })
Cannot declare a parameter named 'a' in strict mode as it has already been declared.:1
js&gt; (a,a) =&gt; {}
Duplicate parameter 'a' not allowed in an arrow function.:1
js&gt; (a,a) =&gt; {''}
Duplicate parameter 'a' not allowed in an arrow function.:1
js&gt; (a,a) =&gt; {return a}
Duplicate parameter 'a' not allowed in an arrow function.:1</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>