☰
Debian Codegraph
@
8.0.6+ds1+~cs177.303.116-1
8.0.4+ds1+~cs177.303.116-3
7.20.15+ds1+~cs214.269.168-17
/
/
packages
/
babel-plugin-transform-block-scoping
/
test
/
fixtures
/
const-violations
/
assignment-in-for-loop
/
exec.js
☽
☼
packages/babel-plugin-transform-block-scoping/test/fixtures/const-violations/assignment-in-for-loop/exec.js
code
plain
raw
symbols
SCIP
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
1
expect
(
function
() {
2
for
(
const
element =
1
; element++;)
break
;
3
}).
toThrow
(
'"element" is read-only'
);
4
5
expect
(
function
() {
6
for
(;;) {
7
const
from =
50
;
8
from--;
9
break
;
10
}
11
}).
toThrow
(
'"from" is read-only'
);