Skip to content

sequence as class property breaks everything #638

@dilame

Description

@dilame

Valid JS code

class Foo {
  [(1, Symbol.asyncIterator)]() {}
}

obfuscated as

class Foo {
    [0x1, Symbol['asyncIterator']]() {
    }
}

invalid js code. The bug exists in the latest 0.x.x and latest 1.x.x versions.

It's very important bug, TypeScript generates such code, i can't even fix it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions