Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
JSTests
/
es6
/
rest_parameters_new_Function_support.js
blob: 30e4e05b87221daa8fdd9ee7c8acfa1a9932ff3b [
file
] [
log
] [
blame
]
function
test
()
{
return
new
Function
(
"a"
,
"...b"
,
"return b instanceof Array && a+b === 'foobar,baz';"
)(
'foo'
,
'bar'
,
'baz'
);
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);