2015-01-04 19:40:09 +11:00

5 lines
78 B
JavaScript

function f([x] = [1], {y} = {y: 2}) {
return x + y;
}
assert.equal(3, f());