summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/baseline/bug842317.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/baseline/bug842317.js')
-rw-r--r--js/src/jit-test/tests/baseline/bug842317.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/baseline/bug842317.js b/js/src/jit-test/tests/baseline/bug842317.js
new file mode 100644
index 0000000000..2092664297
--- /dev/null
+++ b/js/src/jit-test/tests/baseline/bug842317.js
@@ -0,0 +1,12 @@
+gczeal(2);
+function A(a) { this.a = a; }
+function B(b) { this.b = b; }
+function C(c) { this.c = c; }
+function makeArray(n) {
+ var classes = [A, B, C];
+ var arr = [];
+ for (var i = 0; i < n; i++) {
+ arr.push(new classes[i % 3](i % 3));
+ }
+}
+var arr = makeArray(30000);