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

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

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