Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
arrow-functions
/
params-rest-1.js
blob: 9d2737a5a63d094adde3448784da660f0c918aa4 [
file
] [
log
] [
blame
]
// Rest parameters are allowed in arrow functions.
var
A
=
(...
x
)
=>
x
;
assertEq
(
A
().
toSource
(),
"[]"
);
assertEq
(
""
+
A
(
3
,
4
,
5
),
"3,4,5"
);