Files
babel/packages/babel-plugin-transform-block-scoping/test/fixtures/const-violations/loop/exec.js
Mauro Bringolf 92fc26d399 Remove check-constants plugin (#6987)
* Rebased onto new version

* Moved constants check into a separate method
2018-01-26 10:43:09 -05:00

6 lines
111 B
JavaScript

assert.throws(function() {
for (const i = 0; i < 3; i = i + 1) {
// whatever
}
}, '"i" is read-only');