Skip to content

Label having the same name with variables caused SyntaxError: Unexpected token ':' #22412

@qwertycxz

Description

@qwertycxz

Here's my repo for reproduction. It used Vitest.

  1. Git clone the oxc-bug branch.
  2. npm i
  3. npm run test

Then, all test failed as in the GitHub Action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions