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
var
Bug report or Feature request?
Sub-optimal output
Version (complete output of terser -V or specific git commit)
terser -V
Whatever is on https://try.terser.org/ as of 2023-09-15
Complete CLI command or minify() options used
minify()
{ module: true, compress: {}, mangle: {}, output: {}, parse: {}, rename: {}, }
terser input
terser
export function next() { var r; while (r = stack.pop()) { var p = r.d.call(r.v); p(p); } }
terser output or error
(note: run through Prettier to make it more readable)
export function next() { for (var a; a = stack.pop(); ) { var o = a.d.call(a.v); o(o); } }
Expected result
export function next() { for (; a = stack.pop(); ) { var a, o = a.d.call(a.v); o(o); } }
The text was updated successfully, but these errors were encountered:
using
This is interesting. Var can indeed be moved anywhere on a function to improve code size, not just here.
Sorry, something went wrong.
No branches or pull requests
Bug report or Feature request?
Sub-optimal output
Version (complete output of
terser -V
or specific git commit)Whatever is on https://try.terser.org/ as of 2023-09-15
Complete CLI command or
minify()
options usedterser
inputterser
output or error(note: run through Prettier to make it more readable)
Expected result
The text was updated successfully, but these errors were encountered: