blob: c4b16ea4dfe180bdeb20c63509d391d7cbb238df (
plain)
1
2
3
4
5
6
7
8
9
10
|
var a = 10;
function f1(a,
[b=(assertEq(a, 1), a=2, 42)],
{c:c=(assertEq(a, 2), a=3, 43)}) {
assertEq(a, 3);
assertEq(b, 42);
assertEq(c, 43);
}
f1(1, [], {});
assertEq(a, 10);
|