Sign in
webkit
/
WebKit
/
b0c18fd02ef6ac2cc1ec9b828ca23bc34a61f86b
/
.
/
JSTests
/
es6
/
rest_parameters_basic_functionality.js
blob: 4dd29cb581e7c3915edc8a5c504964dee8512a62 [
file
] [
log
] [
blame
]
function
test
()
{
return
(
function
(
foo
,
...
args
)
{
return
args instanceof
Array
&&
args
+
""
===
"bar,baz"
;
}(
"foo"
,
"bar"
,
"baz"
));
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);