-
- Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Describe the bug
swc does not recognize the change in the array in some situation.
Input code
var c = 'push'; // maybe any word for (var a = 1, b = []; a < 5; a++) { b[c]({}); } b[0][d] = 1; b[e][f] = b[1][g];Config
{ "jsc": { "parser": { "syntax": "ecmascript", "jsx": true }, "target": "es5", "loose": false, "minify": { "compress": { }, "mangle": false }, "externalHelpers": false }, "module": { "type": "es6" }, "minify": true, "isModule": true }Playground link (or link to the minimal reproduction)
SWC Info output
No response
Expected behavior
terser is ok:
Actual behavior
swc does not recognize the change in the array:
Version
1.11.8
Additional context
No response

