Skip to content
This repository was archived by the owner on May 17, 2025. It is now read-only.
This repository was archived by the owner on May 17, 2025. It is now read-only.

Error not thrown when swapping two variables on a single line #210

Description

@dillan-wilson

let arr = [1, 2, 3] arr[0],arr[2] = arr[2], arr[0] console.log(arr)

This should throw an error, but it does not and simply prints out 1, 2, 3. The left hand side is not flagged as a comma operator.

Metadata

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