* 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
6 lines
135 B
JavaScript
6 lines
135 B
JavaScript
var MULTIPLIER = 5;
|
|
"overwrite", babelHelpers.readOnlyError("MULTIPLIER");
|
|
var a = 5;
|
|
var b = 0;
|
|
b++, babelHelpers.readOnlyError("a");
|