summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/basic/bug631305.js
blob: b0cbbbb248a54d4976d26b2310f7ed61edbda6ff (plain)
1
2
3
4
5
6
7
8
9
var n = 0;
var a = [];
for (var i = 0; i < 20; i++)
    a[i] = {};
a[18].watch("p", function () { n++; });
delete a[18].p;
for (var i = 0; i < 20; i++)
    a[i].p = 0;
assertEq(n, 1);