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

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

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