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

var a = ['a', 'b', 'c'];
a.slow = true;
var log = '';
for (var x of a)
    log += x;
assertEq(log, 'abc');