summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/defaults-destructuring-function-expression.js
blob: 9517a5c4d496d58aa24aff9bbc68137c28d3e592 (plain)
1
2
3
4
5
6
7
8
9
let f = function(a, bIs, cIs, dIs, {b}={b: 3}, c=4, [d]=[5]) {
  assertEq(a, 1);
  assertEq(b, bIs);
  assertEq(c, cIs);
  assertEq(d, dIs);
};
assertEq(f.length, 4);
f(1, 3, 4, 5);
f(1, 42, 43, 44, {b: 42}, 43, [44]);