summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/six-speed/tests/for-of-object.es5
blob: 3dc1da192972ae27fd45b9fdf3301b02cab6e223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
var data = {'a': 'b', 'c': 'd'};
function fn() {
  var ret = '';
  for (var name in data) {
    if (data.hasOwnProperty(name)) {
      ret += data[name];
    }
  }
  return ret;
}

assertEqual(fn(), 'bd');
test(fn);