Skip to content

SyntaxError not thrown for duplicate parameters in arrow functions #2544

Open
@theauk

Description

ff487e0

Test Case

(a, a) => {  }

Expected Behavior
I would expect to see a syntax error about duplicated parameters not being allowed in this context. Running the test case on other JavaScript engines (Node, Hermes, QuickJS, Deno, Ecargot), I get some version of a duplicated parameter SyntaxError.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions