ggaren@apple.com | 7e53546 | 2016-11-04 23:02:19 +0000 | [diff] [blame] | 1 | function foo(string) { |
2 | let result = 42; | ||||
3 | for (let i = 0; i < 1000; ++i) | ||||
4 | eval(string); | ||||
5 | return result; | ||||
6 | } | ||||
7 | |||||
8 | noInline(foo); | ||||
9 | |||||
10 | for (let i = 0; i < 200; ++i) { | ||||
11 | let result = foo("++result"); | ||||
12 | if (result != 42 + 1000) | ||||
13 | throw "Error: bad result: " + result; | ||||
14 | } |