js/src/jit-test/tests/basic/testBug582766.js

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:f96a949f5793
1 expected = 4;
2
3 var fourth = { nextSibling: null };
4 var third = { nextSibling: fourth };
5 var second = { nextSibling: third };
6 var first = { nextSibling: second };
7
8 function f() {
9 let loopcount = 0;
10 for (let node = first; node; node = node.nextSibling) {
11 loopcount++;
12 }
13 return loopcount;
14 }
15
16 actual = f();
17
18 assertEq(actual, expected);

mercurial