We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bug report or Feature request?
Bug report
Version (complete output of terser -V or specific git commit)
terser -V
5.16.8
Complete CLI command or minify() options used
minify()
--compress defaults=false,side_effects=true
terser input
terser
(function(o) { console.log((0, o?.f)("PASS")); })({ a: "FAIL", f(b) { return this.a || b; }, });
terser output or error FAIL when side_effects=true, PASS when false. Un-tersified code piped directly into node prints PASS.
FAIL
side_effects=true
PASS
node
Expected result PASS
The text was updated successfully, but these errors were encountered:
maintain_this_binding in common.js needs to handle AST_Chain nodes.
maintain_this_binding
common.js
AST_Chain
Sorry, something went wrong.
Fixes terser#1372
cb93537
0a76cf8
73c669e
No branches or pull requests
Bug report or Feature request?
Bug report
Version (complete output of
terser -V
or specific git commit)5.16.8
Complete CLI command or
minify()
options used--compress defaults=false,side_effects=true
terser
inputterser
output or errorFAIL
whenside_effects=true
,PASS
when false. Un-tersified code piped directly intonode
printsPASS
.Expected result
PASS
The text was updated successfully, but these errors were encountered: