Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testForInLoopChangeIteratorType.js
blob: 0efce83648ec12a63c7637404eec2edb0b77942d [
file
] [
log
] [
blame
]
function
testForInLoopChangeIteratorType
()
{
for
(
y in
[
0
,
1
,
2
])
y
=
NaN
;
(
function
(){
[].
__proto__
.
u
=
void
0
;
for
(
let y in
[
5
,
6
,
7
,
8
])
y
=
NaN
;
delete
[].
__proto__
.
u
;
})()
return
"ok"
;
}
assertEq
(
testForInLoopChangeIteratorType
(),
"ok"
);