summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug641491.js
blob: 653e47a6abd8b79b6afe85808682b2ba6e5f37e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function f1() {
}
function f2() {
}
function f3(o) {
    f2 = Date.prototype;
}
var key = Object.getOwnPropertyNames(f1)[30];
if(key) {
    f3 = f1[key];
}
gc(); 
gc();
try {
for(var i=0; i<10; i++) {
    delete f2[1];
    f3(function() {});
}
} catch (e) {}