1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/bug641491.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +function f1() { 1.5 +} 1.6 +function f2() { 1.7 +} 1.8 +function f3(o) { 1.9 + f2 = Date.prototype; 1.10 +} 1.11 +var key = Object.getOwnPropertyNames(f1)[30]; 1.12 +if(key) { 1.13 + f3 = f1[key]; 1.14 +} 1.15 +gc(); 1.16 +gc(); 1.17 +try { 1.18 +for(var i=0; i<10; i++) { 1.19 + delete f2[1]; 1.20 + f3(function() {}); 1.21 +} 1.22 +} catch (e) {}