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 |
utatane.tea@gmail.com | 0f8e083 | 2016-03-30 16:34:30 +0000 | [diff] [blame] | 2 | function test(str, count) |
3 | { | ||||
4 | var repeated = str.repeat(count); | ||||
5 | // Expand the rope. | ||||
6 | return repeated[0] + repeated[count >> 1] + repeated[repeated.length - 1]; | ||||
7 | } | ||||
8 | |||||
9 | for (var i = 0; i < 1e4; ++i) | ||||
10 | test(' ', i); |