summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/six-speed/tests/rest.es5
blob: 6c9b56a09a5710e3e241bea285be7598fe87628f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function fn() {
  return arguments[1];
}

assertEqual(fn(), undefined);
assertEqual(fn(2), undefined);
assertEqual(fn(2, 4), 4);

test(function() {
  fn();
  fn(2);
  fn(2, 4);
});