summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1640737.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/bug1640737.js')
-rw-r--r--js/src/jit-test/tests/ion/bug1640737.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1640737.js b/js/src/jit-test/tests/ion/bug1640737.js
new file mode 100644
index 0000000000..9a1609a283
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug1640737.js
@@ -0,0 +1,17 @@
+function g(arr) {
+ var res = [];
+ for (var i = 0; i < arr.length; i++) {
+ var el = arr[i];
+ res.push(el);
+ }
+ return res;
+}
+function f() {
+ for (var i = 0; i < 2; i++) {
+ var obj = {__proto__: []};
+ for (var j = 0; j < 1500; j++) {
+ g([13.37, obj]);
+ }
+ }
+}
+f();