projects
/
platform
/
upstream
/
js.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 1.0.0
[platform/upstream/js.git]
/
js
/
src
/
jit-test
/
tests
/
basic
/
testBug586866.js
1
var magic = HOTLOOP;
2
3
var obj = {};
4
for (var i = 1; i <= magic; ++i)
5
obj[i] = "a";
6
7
function func() {
8
var i = 1;
9
while (i in obj) {
10
++i;
11
}
12
return i - 1;
13
}
14
assertEq(func(), magic);
15
assertEq(func(), magic);
16
assertEq(func(), magic);