diff options
Diffstat (limited to 'js/src/jit-test/tests/jaeger/bug585310.js')
-rw-r--r-- | js/src/jit-test/tests/jaeger/bug585310.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/jaeger/bug585310.js b/js/src/jit-test/tests/jaeger/bug585310.js new file mode 100644 index 000000000..0f65c9131 --- /dev/null +++ b/js/src/jit-test/tests/jaeger/bug585310.js @@ -0,0 +1,19 @@ +gczeal(2) +try { + (function () { + for each(l in [0, 0, 0]) { + print(''.replace(function () {})) + } + })() +} catch (e) {} + +x = gczeal(2) +try { + (function () { + for each(d in [x, x, x]) { + 'a'.replace(/a/, function () {}) + } + })() +} catch (e) {} + +/* Don't assert or segfault. Tests PIC resetting. */ |