summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/six-speed/tests/for-of-array.es5
blob: d27543f84ade2c7224f93568e6fa8bfa7567ce74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
var data = [1,2,3];

function fn() {
  var ret = '';
  for (var i = 0; i < data.length; i++) {
    ret += data[i];
  }
  return ret;
}

assertEqual(fn(), '123');

test(fn);