summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/six-speed/tests/object-literal-ext.es6
blob: 8b2052f9903dd360b972e68af030ce45d7bda2dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function fn() {
  var name = 'foo';
  return {
    'bizz buzz'() {
      return 1;
    },
    name,
    [name]: 'bar',
    [name + 'foo']: 'foo'
  };
}

assertEqual(fn().foofoo, 'foo');
test(fn);