Sign in
webkit
/
WebKit
/
6ac1ae7345a9a50f3760d4fdf5f8c6512c4a9901
/
.
/
JSTests
/
stress
/
for-of-value-getter-contains-control-flow.js
blob: 8c6fb590ab63f47b0e008dc467d58f18a5295f79 [
file
] [
log
] [
blame
]
let i
=
10000
;
let d
=
{
get
value
()
{
if
(
undefined
instanceof
Object
)
return
1
;
return
42
;
},
get
done
()
{
return
!(--
i
);
}
};
let x
=
{
next
:
()=>
d
}
let iter
=
{};
iter
[
Symbol
.
iterator
]
=
()=>
x
;
for
(
let x of iter
)
{}