summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug782129.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/auto-regress/bug782129.js')
-rw-r--r--js/src/jit-test/tests/auto-regress/bug782129.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/auto-regress/bug782129.js b/js/src/jit-test/tests/auto-regress/bug782129.js
new file mode 100644
index 000000000..44a543cd9
--- /dev/null
+++ b/js/src/jit-test/tests/auto-regress/bug782129.js
@@ -0,0 +1,24 @@
+// Binary: cache/js-dbg-32-f1764bf06b29-linux
+// Flags: --ion-eager
+//
+
+var callStack = new Array();
+function enterFunc (funcName) {
+ funcName += "()";
+ callStack.push(funcName);
+}
+function exitFunc (funcName) {
+ var lastFunc = callStack.pop();
+ funcName += "()";
+ if (lastFunc != funcName)
+ print();
+}
+try {
+ test();
+} catch(exc1) {}
+function test() {
+ enterFunc ('test');
+ test();
+}
+for (var l = 0; l < 50000; l++)
+ exitFunc ('test');