summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testSuppressDeletedProperty.js
blob: a867b35d24450186060dc631c1337547dc84bda0 (plain)
1
2
3
4
5
6
7
8
var obj = { a:1, b:1, c:1, d:1, e:1, f:1, g:1 };
var sum = 0;
for each (var i in obj) {
    sum += i;
    delete obj.f;
}

// this isn't even implemented to work yet; just don't crash or iloop