blob: bb9b39c50b46242dab6629ae1e43a843959a6033 (
plain)
1
2
3
4
5
6
7
8
9
|
function f(a, b, c, ...rest) {
assertEq(a, 1);
assertEq(b, undefined);
assertEq(c, undefined);
assertEq(Array.isArray(rest), true);
assertEq(rest.length, 0);
assertEq(Object.getPrototypeOf(rest), Array.prototype);
}
f(1);
|