summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/baseline/bug847425.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/baseline/bug847425.js')
-rw-r--r--js/src/jit-test/tests/baseline/bug847425.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/baseline/bug847425.js b/js/src/jit-test/tests/baseline/bug847425.js
new file mode 100644
index 000000000..448abceaf
--- /dev/null
+++ b/js/src/jit-test/tests/baseline/bug847425.js
@@ -0,0 +1,14 @@
+// |jit-test| allow-oom; allow-unhandlable-oom
+gcparam("maxBytes", gcparam("gcBytes") + 4*1024);
+var max = 400;
+function f(b) {
+ if (b) {
+ f(b - 1);
+ } else {
+ g = {
+ apply:function(x,y) { }
+ };
+ }
+ g.apply(null, arguments);
+}
+f(max - 1);