Source code

Revision control

Copy as Markdown

Other Tools

function foo(n) {
for (var i = 0; i < n; i++) {}
return i;
}
assertEq(foo(1000), 1000);
gc();
eval("assertEq(foo(1000.5), 1001)");