Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect transform of tagged template literal with new #1159

Closed
Austaras opened this issue Mar 2, 2022 · 1 comment
Closed

Incorrect transform of tagged template literal with new #1159

Austaras opened this issue Mar 2, 2022 · 1 comment
Labels
bug compress Issue in the compression step

Comments

@Austaras
Copy link

Austaras commented Mar 2, 2022

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)``
@jridgewell jridgewell added bug compress Issue in the compression step labels Mar 2, 2022
@fabiosantoscode
Copy link
Collaborator

fabiosantoscode commented Mar 4, 2022

What a weird corner case :) thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug compress Issue in the compression step
Projects
None yet
Development

No branches or pull requests

3 participants