summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug592973-3.js
blob: 541c39981a4c65185c52a0647fa3e4e32774e0b9 (plain)
1
2
3
4
5
6
7
8
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f([a, b, c, d]) {
  a = b;
  return function () { return a + b + c + d; };
}

var F = f(["a", "b", "c", "d"]);
assertEq(F(), "bbcd");