zhifei_fang@apple.com | 7316680 | 2019-10-22 22:46:40 +0000 | [diff] [blame] | 1 | //@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py |
ggaren@apple.com | 7e53546 | 2016-11-04 23:02:19 +0000 | [diff] [blame] | 2 | function foo(string) { |
3 | let result = 42; | ||||
4 | for (let i = 0; i < 1000; ++i) | ||||
5 | eval(string); | ||||
6 | return result; | ||||
7 | } | ||||
8 | |||||
9 | noInline(foo); | ||||
10 | |||||
11 | for (let i = 0; i < 200; ++i) { | ||||
12 | let result = foo("++result"); | ||||
13 | if (result != 42 + 1000) | ||||
14 | throw "Error: bad result: " + result; | ||||
15 | } |