blob: 00449a6d2b641c9178ccdbbfe66460e334687c7e [file] [log] [blame]
ggaren@apple.com7e535462016-11-04 23:02:19 +00001function foo(string) {
2 let result = 42;
3 for (let i = 0; i < 1000; ++i)
4 eval(string);
5 return result;
6}
7
8noInline(foo);
9
10for (let i = 0; i < 200; ++i) {
11 let result = foo("++result");
12 if (result != 42 + 1000)
13 throw "Error: bad result: " + result;
14}