The Tor Browser
/ file comparison
Search:
summary
shortlog
changelog
graph
tags
bookmarks
branches
files
help
file
revisions
annotate
diff
comparison
raw
comparison: js/src/jit-test/tests/for-of/arrays-shrinking-2.js
js/src/jit-test/tests/for-of/arrays-shrinking-2.js
changeset 0
6474c204b198
equal
deleted
inserted
replaced
-1:000000000000
0:c9050d312844
1
// Using shift to cut values out of an array does not change the next index of an existing iterator.
2
3
var a = [1, 2, 3, 4, 5, 6, 7, 8];
4
var s = '';
5
for (var v of a) {
6
s += v;
7
a.shift();
8
}
9
assertEq(s, '1357');