summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/recompile/bug621292.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/jaeger/recompile/bug621292.js')
-rw-r--r--js/src/jit-test/tests/jaeger/recompile/bug621292.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/jaeger/recompile/bug621292.js b/js/src/jit-test/tests/jaeger/recompile/bug621292.js
new file mode 100644
index 0000000000..11dca94710
--- /dev/null
+++ b/js/src/jit-test/tests/jaeger/recompile/bug621292.js
@@ -0,0 +1,24 @@
+
+/* Don't crash. */
+
+var count = 0;
+
+function callbackfn(v) {
+ if (++count == 98)
+ count = 0x7ffffff0;
+ return arr[0] + count;
+}
+
+function foo() {
+ arr = [1,2,3,4,5];
+ for (var i = 0; i < 50; i++)
+ arr = arr.map(callbackfn);
+}
+foo();
+
+function f(a,b,c) {
+ a = 1; b = 'str'; c = 2.1;
+ return arguments[0];
+}
+for (var i = 0; i < 20; i++)
+ assertEq(f(10,'sss',1), 1);