summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug821788.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/bug821788.js')
-rw-r--r--js/src/jit-test/tests/ion/bug821788.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug821788.js b/js/src/jit-test/tests/ion/bug821788.js
new file mode 100644
index 000000000..520b7919c
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug821788.js
@@ -0,0 +1,13 @@
+
+var appendToActual = function(s) {
+ actual += s + ',';
+}
+gczeal(2,(3));
+actual = '';
+function loop(f) {}
+function f(j, k) {
+ var g = function(a, b, c) {}
+ for (k = 0; k < 5; ++k)
+ appendToActual(loop(g));
+}
+f(1);