Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
for-of
/
typedarrays-1.js
blob: d6b7f50383a83e3046876dd58cbb2f125ed2d4bc [
file
] [
log
] [
blame
]
// for-of can iterate over typed arrays.
var
a
=
new
Int8Array
([
0
,
1
,
-
7
,
3
])
var
s
=
''
;
for
(
var
v of a
)
s
+=
v
+
','
;
assertEq
(
s
,
'0,1,-7,3,'
);