summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug625377.js
blob: 4c789393846cfcbadc35266cd19900ad6665d499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
x = []
for(var i=0; i<3; i++) {
    var obj = { first: "first", second: "second" };
    var count = 0;
    for (var elem in obj) {
        delete obj.second;
        count++;
    }
    x.push(count);
}
assertEq(x[0], 1);
assertEq(x[1], 1);
assertEq(x[2], 1);