Sign in
webkit
/
WebKit
/
5bd663b95d2fa0048c9b51d7e90d3c09992ceb28
/
.
/
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"
);