Debian Codegraph @

packages/babel-plugin-transform-block-scoping/test/fixtures/const-violations/assignment-in-for-loop/exec.js

raw symbols SCIP
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');