summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/extensions/regress-627984-6.js
blob: cb1a0fca9572a435c35a0c3f3bc022dc67a5069c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/

// Bug 627984 description.
var o = Array;
o.p = function() {};
o.watch('p', function() { }); 
for(var x in o) { 
    o[x]; 
}
delete o.p;
o.p = function() {};
assertEq(o.p, void 0);

reportCompare(0, 0, 'ok');