overlookmotel f166b7ae58
Fix plugin-transform-block-scoping const violations (#13248)
* Fix plugin-transform-block-scoping const violations

Fixes #13245

* Replace `a++` with `+a` where const violation

* Remove assignment where const violation

* Remove assignment for `&&=`, `||=`, `??=` where const violation

* Shorten test
2021-05-03 11:47:25 -04:00

7 lines
102 B
JavaScript

var MULTIPLIER = 5;
for (var _MULTIPLIER in arr) {
babelHelpers.readOnlyError("MULTIPLIER");
;
}