summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/for-of/arrays-1.js
blob: b75a78d1911a3949e27ddad22cb177198087dba5 (plain)
1
2
3
4
5
6
7
// for-of works on arrays.

var a = ['a', 'b', 'c'];
var s = '';
for (var v of a)
    s += v;
assertEq(s, 'abc');