summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/baseline/bug1238815.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/baseline/bug1238815.js')
-rw-r--r--js/src/jit-test/tests/baseline/bug1238815.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/baseline/bug1238815.js b/js/src/jit-test/tests/baseline/bug1238815.js
new file mode 100644
index 000000000..e64955ee1
--- /dev/null
+++ b/js/src/jit-test/tests/baseline/bug1238815.js
@@ -0,0 +1,13 @@
+// This program crashes the ARM code generator because the machine code is
+// longer than the 32MB range of ARM branch instructions.
+//
+// Baseline should not attempt to compile the script.
+
+i = 1;
+function test(s) eval("line0 = Error.lineNumber\ndebugger\n" + s);
+function repeat(s) {
+ return Array(65 << 13).join(s)
+}
+long_expr = repeat(" + i")
+long_throw_stmt = long_expr;
+test(long_throw_stmt);