blob: 014a839c7390905aacd0124f7527e0c46984a041 [file] [log] [blame]
zhifei_fang@apple.com73166802019-10-22 22:46:40 +00001//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
ggaren@apple.com7e535462016-11-04 23:02:19 +00002function foo(string) {
3 let result = 42;
4 for (let i = 0; i < 1000; ++i)
5 eval(string);
6 return result;
7}
8
9noInline(foo);
10
11for (let i = 0; i < 200; ++i) {
12 let result = foo("++result");
13 if (result != 42 + 1000)
14 throw "Error: bad result: " + result;
15}