Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
for-of
/
array-holes-2.js
blob: cc37aedf2ac79134cece5b67c9524f30e14b8aaf [
file
] [
log
] [
blame
]
// for-of consults Object.prototype when it encounters a hole.
Object
.
prototype
[
1
]
=
'peek'
;
var
log
=
[];
for
(
var
x of
[
0
,
,
2
,
3
])
log
.
push
(
x
);
assertEq
(
log
[
1
],
'peek'
);
assertEq
(
log
.
join
(),
"0,peek,2,3"
);