Skip to content

Incorrect transform of tagged template literal with new #1159

@Austaras

Description

@Austaras

Bug report or Feature request?

Bug report

Version (complete output of terser -V or specific git commit)
Complete CLI command or minify() options used
I use terser playground

terser input

new A()``

terser output or error

new A``

which would be parsed as new (A``)
Expected result
output

new A()``
// or
(new A)``

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcompressIssue in the compression step

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions