5c036cd772
Duplicate parameters are banned both overall in strict mode and also in arrow functions. Our error message for both cases blamed strict mode, which is confusing. This patch fixes the message to point to arrow functions as a possible source as well. R=wingo, adamk LOG=N Review URL: https://codereview.chromium.org/1236863008 Cr-Commit-Position: refs/heads/master@{#29662}
5 lines
208 B
Plaintext
5 lines
208 B
Plaintext
*%(basename)s:6: SyntaxError: Duplicate parameter name not allowed in this context
|
|
function foo(b, a, a, d) { return a }
|
|
^
|
|
SyntaxError: Duplicate parameter name not allowed in this context
|