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/array-holes-3.js
js/src/jit-test/tests/for-of/array-holes-3.js
changeset 0
6474c204b198
equal
deleted
inserted
replaced
-1:000000000000
0:050cbfc39605
1
// for-of consults Array.prototype when it encounters a hole.
2
3
Array.prototype[1] = 'peek';
4
var log = [];
5
for (var x of [0, , 2, 3])
6
log.push(x);
7
assertEq(log[1], 'peek');
8
assertEq(log.join(), "0,peek,2,3");