summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/six-speed/tests/map-string.es6
blob: 43b781102555fc4afa048a8504e2d1a029c07b27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var map = new Map();

for (var i = 0; i < 500; i++) {
  map.set(i + '', i);
}

function fn() {
  return map.get('499') === 499;
}

assertEqual(fn(), true);
test(fn);