Sign in
webkit
/
WebKit
/
b8f6a35fa77bb114334a13d2bb27d3a353311c60
/
.
/
JSTests
/
es6
/
spread_..._operator_spreading_non-iterables_is_a_runtime_error.js
blob: 78047d05796f9a0ff06f508dfc5d01988a8d6da2 [
file
] [
log
] [
blame
]
function
test
()
{
try
{
Math
.
max
(...
2
);
}
catch
(
e
)
{
return
Math
.
max
(...[
1
,
2
,
3
])
===
3
;
}
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);