summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/six-speed/tests/destructuring-simple.es5
blob: 1bd89387cfb7e548813e22770204b51f37506b15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var data = {
  a: 'foo',
  b: {c: 'd'},
  arr: [1, 2, 3]
};

function fn() {
  var a = data.a,
      b = data.b;
  return a;
}

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