blob: 1541775f87d49848a6928b7ebbd0a007bc98647a (
plain)
1
2
3
4
5
6
7
8
9
|
function testNestedForIn() {
var a = {x: 1, y: 2, z: 3};
var s = '';
for (var p1 in a)
for (var p2 in a)
s += p1 + p2 + ' ';
return s;
}
assertEq(testNestedForIn(), 'xx xy xz yx yy yz zx zy zz ');
|