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

[ES6] Not working [for await...of] in uglify-es #5823

Open
kimdj2 opened this issue Apr 1, 2024 · 0 comments
Open

[ES6] Not working [for await...of] in uglify-es #5823

kimdj2 opened this issue Apr 1, 2024 · 0 comments

Comments

@kimdj2
Copy link

kimdj2 commented Apr 1, 2024

Uglify version (uglifyjs -V)

uglify-es 3.3.9

JavaScript input

In case of using for await...of, it occurs error

const tests = [
  Promise.resolve('test 1'),
  Promise.resolve('test 2'),
  Promise.resolve('test 3'),
  Promise.resolve('test 4'),
]

function runTests() {
  for await (const test of tests) {
    console.log(test)
  }
}

The uglifyjs CLI command executed or minify() options used.

JavaScript output or error produced.
スクリーンショット 2024-04-01 23 55 19

@kimdj2 kimdj2 changed the title [ES6] Not working for await...of [ES6] Not working [for await...of] in uglify-es Apr 1, 2024
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