summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/popn.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/popn.js')
-rw-r--r--js/src/jit-test/tests/ion/popn.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/popn.js b/js/src/jit-test/tests/ion/popn.js
new file mode 100644
index 000000000..06e2f5fb8
--- /dev/null
+++ b/js/src/jit-test/tests/ion/popn.js
@@ -0,0 +1,11 @@
+function f() {
+ var t = 0;
+ for (var j = 0; j < 10; j++) {
+ for (var i = 0; i < 9; ++i) {
+ var [r, g, b] = [1, i, -10];
+ t += r + g + b;
+ }
+ }
+ return t;
+}
+assertEq(f(), -450);