1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/gc/bug-924690.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,25 @@ 1.4 +x = [] 1.5 +try { 1.6 + (function() { 1.7 + schedulegc(1); 1.8 + ((function() { 1.9 + return { 1.10 + y: function() { 1.11 + u() = [] 1.12 + } 1.13 + } 1.14 + })()) 1.15 + })() 1.16 + watch.call(x, "valueOf", function() {}) 1.17 + gc() 1.18 +} catch (e) { print(e); } 1.19 +try { 1.20 + (function() { 1.21 + x.valueOf = 1.22 + (function() { 1.23 + y(); 1.24 + }) 1.25 + })() 1.26 + x + 2 1.27 + print('foo') 1.28 +} catch (e) { print(e); }