projects
/
platform
/
upstream
/
js.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge "fix: the incorrect version of tarball generated by gbs export" into tizen
[platform/upstream/js.git]
/
js
/
src
/
jit-test
/
tests
/
basic
/
testBug582766.js
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);