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

Removal of pure function calls does not handle spread arguments #1239

Open
evanw opened this issue Aug 8, 2022 · 0 comments
Open

Removal of pure function calls does not handle spread arguments #1239

evanw opened this issue Aug 8, 2022 · 0 comments

Comments

@evanw
Copy link

evanw commented Aug 8, 2022

Bug report or Feature request?

Bug

Version (complete output of terser -V or specific git commit)

terser 5.14.2

Complete CLI command or minify() options used

node_modules/.bin/terser -c < code.js

terser input

This is a heads-up about a similar issue I encountered in evanw/esbuild#2445:

/*@__PURE__*/console.log(...{[Symbol.iterator](){sideEffect()}})

terser output or error

Symbol.iterator;

Expected result

I'm probably going to go with something like this for esbuild:

[...{[Symbol.iterator](){sideEffect()}}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant