summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/delete-indexed-names.js
blob: 9d30ebd17d84ae51e42c8b7563f673a9e156e9b5 (plain)
1
2
3
4
5
6
7
var a = ['p', 'q', 'r', 's', 't'];
var o = {p:1, q:2, r:3, s:4, t:5};
for (var i in o)
    delete o[i];
for each (var i in a)
    assertEq(o.hasOwnProperty(i), false);