summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/for-of/array-holes-5.js
blob: 3f70ed123b5c5a5bf2de32775a3dc87fa2d47b3b (plain)
1
2
3
4
5
6
// for-of does not skip trailing holes; the value is undefined.

var log = "";
for (var x of [1, 2, 3,,])
    log += x;
assertEq(log, "123undefined");