Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
for-of
/
wrapper-1.js
blob: 90adb11b084a33b80cefd4eda37ead7bc13b1568 [
file
] [
log
] [
blame
]
// for-of works on cross-compartment wrappers of Arrays.
var
g
=
newGlobal
();
var
s
=
''
;
for
(
var
x of g
.
Array
(
1
,
1
,
2
,
3
,
5
))
s
+=
x
;
assertEq
(
s
,
'11235'
);