blob: 8580820c74491ee8dccd3a91d6e88f2bffe1ef66 [file] [log] [blame]
fpizlo@apple.comda834ae2015-03-26 04:28:43 +00001function foo(x) {
2 var tmp = x + 1;
3 return tmp + arguments[0];
4}
5
6noInline(foo);
7
8for (var i = 0; i < 10000; ++i) {
9 var result = foo(i);
10 if (result != i + i + 1)
11 throw "Error: bad result: " + result;
12}
13
14var result = foo(4.5);
15if (result != 4.5 + 4.5 + 1)
16 throw "Error: bad result at end: " + result;