DescriptionImprove error message for duplicate parameters
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
Committed: https://crrev.com/5c036cd7729d6cfaa6c390bfc070fdc02a8d800d
Cr-Commit-Position: refs/heads/master@{#29662}
Patch Set 1 #Patch Set 2 : Fix test failure #Patch Set 3 : Better error message #Patch Set 4 : arrow function test #
Total comments: 1
Patch Set 5 : pass flags to test #Patch Set 6 : Fix webkit test #
Messages
Total messages: 21 (7 generated)
|