summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/six-speed/tests/arrow-declare.es6
blob: 9e37365b2890fb6245c7d89f42be7ec6a4975235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
var obj = {
  value: 42,
  fn: function() {
    return () => this.value;
  }
};

assertEqual(obj.fn()(), 42);

test(function() {
  obj.fn();
});