summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/six-speed/tests/for-of-array.es6
blob: b64378948b2a224b880b802db3692833db7b5820 (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 value of data) {
    ret += value;
  }
  return ret;
}

assertEqual(fn(), '123');

test(fn);