Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
for-of
/
return.js
blob: 3e39df49cfe5b58a691866071f3809345874f945 [
file
] [
log
] [
blame
]
// Control can exit a for-of loop via return.
function
f
()
{
for
(
var
a of
[
1
,
2
,
3
])
{
for
(
var
b of
[
1
,
2
,
3
])
{
for
(
var
c of
[
1
,
2
,
3
])
{
if
(
a
!==
b
&&
b
!==
c
&&
c
!==
a
)
return
""
+
a
+
b
+
c
;
}
}
}
}
assertEq
(
f
(),
"123"
);