diff options
Diffstat (limited to 'js/src/jit-test/tests/gc/bug1191756.js')
-rw-r--r-- | js/src/jit-test/tests/gc/bug1191756.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/bug1191756.js b/js/src/jit-test/tests/gc/bug1191756.js new file mode 100644 index 000000000..b52203a9d --- /dev/null +++ b/js/src/jit-test/tests/gc/bug1191756.js @@ -0,0 +1,19 @@ +if (typeof 'oomAtAllocation' === 'undefined') + quit(); + +function fn(i) { + if (i == 3) + return ["isFinite"].map(function (i) {}); + return []; +} + +try { + fn(0); + fn(1); + fn(2); + oomAtAllocation(50); + fn(3); +} catch(e) { + // Ignore oom +} + |