Sign in
webkit
/
WebKit
/
2e2cb00ac8a118644a070f63a7b5ac6a2db0e0aa
/
.
/
JSTests
/
es6
/
for..of_loops_with_sparse_arrays.js
blob: 13b80bedcb810a70e93e86551a41e924ad9d0e1c [
file
] [
log
] [
blame
]
function
test
()
{
var
arr
=
[,,];
var
count
=
0
;
for
(
var
item of arr
)
count
+=
(
item
===
undefined
);
return
count
===
2
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);