Bug 654668: Add test.
authorPaul Biggar <pbiggar@mozilla.com>
Tue, 10 May 2011 07:37:32 -0700
changeset 75017 2d4c3ee5f9f418914155c1703ce7c6ebd92ce2eb
parent 75016 015bd3ff1be6e7cfc8d93fc3be7c90d6b5b82536
child 75024 64b33a6af9f8af6b8c64f4897647ead8a6d39031
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
bugs654668
milestone6.0a1
Bug 654668: Add test.
js/src/jit-test/tests/basic/bug654668.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/basic/bug654668.js
@@ -0,0 +1,10 @@
+var summary = 'foo';
+function X(n) {
+    var y = [];
+    while (summary + y[0]) {
+        break;
+    }
+}
+X();
+
+// Don't crash wthi -m -n -a