Debian Codegraph @

js/src/jit-test/tests/cacheir/bindname-lexical-errors.js

raw
1 const x = 1;
2 function testConst() {
3 for (var i = 0; i < 20; i++) {
4 try {
5 x = 2;
6 } catch (e) {
7 continue;
8 }
9 throw "Fail1";
10 }
11 assertEq(x, 1);
12 }
13 testConst();
14
15 function testUninit() {
16 for (var i = 0; i < 20; i++) {
17 try {
18 y = 2;
19 } catch (e) {
20 continue;
21 }
22 throw "Fail2";
23 }
24 }
25 testUninit();
26 let y;