summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1502090.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/bug1502090.js')
-rw-r--r--js/src/jit-test/tests/ion/bug1502090.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1502090.js b/js/src/jit-test/tests/ion/bug1502090.js
new file mode 100644
index 0000000000..c7638e7e73
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug1502090.js
@@ -0,0 +1,13 @@
+function f(o) {
+ var a = [o];
+ a.length = a[0];
+ var useless = function() {}
+ var sz = Array.prototype.push.call(a, 42, 43);
+ (function(){
+ sz;
+ })(new Boolean(false));
+}
+for (var i = 0; i < 2; i++) {
+ f(1);
+}
+f(2);