blob: 492d055e84ca6130986eb877ce4f1baf354d4ae1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
function copied(x, y) {
return x + y;
}
function foo(x) {
var a = 0;
for (var i = 0; i < 100; i++)
a += copied(x, x);
return a;
}
var q = foo(5);
assertEq(q, 1000);
|