1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/jaeger/bug585310.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +gczeal(2) 1.5 +try { 1.6 + (function () { 1.7 + for each(l in [0, 0, 0]) { 1.8 + print(''.replace(function () {})) 1.9 + } 1.10 + })() 1.11 +} catch (e) {} 1.12 + 1.13 +x = gczeal(2) 1.14 +try { 1.15 + (function () { 1.16 + for each(d in [x, x, x]) { 1.17 + 'a'.replace(/a/, function () {}) 1.18 + } 1.19 + })() 1.20 +} catch (e) {} 1.21 + 1.22 +/* Don't assert or segfault. Tests PIC resetting. */