UglifyJS icon indicating copy to clipboard operation
UglifyJS copied to clipboard

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

Open kimdj2 opened this issue 2 years ago • 0 comments

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 avatar Apr 01 '24 15:04 kimdj2