Skip to content
Snippets Groups Projects
  • jugglinmike's avatar
    9fccd985
    Improve coverage for UniqueFormalParameters (#2043) · 9fccd985
    jugglinmike authored
    Previously, the early error prohibiting duplicate entries in
    UniqueFormalParameters was only tested in terms of async functions. In
    one case, this was misattributed to UniqeFormalParameters and only
    enforced for strict mode code.
    
    Extend coverage to the other function-creating productions which include
    UniqueFormalParameters (i.e. method definitions and non-async arrow
    functions), and update the existing tests to more accurately describe
    the source of the error.
    9fccd985
    History
    Improve coverage for UniqueFormalParameters (#2043)
    jugglinmike authored
    Previously, the early error prohibiting duplicate entries in
    UniqueFormalParameters was only tested in terms of async functions. In
    one case, this was misattributed to UniqeFormalParameters and only
    enforced for strict mode code.
    
    Extend coverage to the other function-creating productions which include
    UniqueFormalParameters (i.e. method definitions and non-async arrow
    functions), and update the existing tests to more accurately describe
    the source of the error.