Bug 1408412 - Add testcase. r=me
authorJan de Mooij <jdemooij@mozilla.com>
Thu, 26 Apr 2018 10:27:54 +0200
changeset 416167 996616295128d61343f50270fe79b3ee49b9579b
parent 416166 314f5e5e4502bb4621710fb77678a2d4ae2b0d5f
child 416168 5bde59ad4082e94f3deea06808152b3ad0077876
push id33917
push userapavel@mozilla.com
push dateSat, 28 Apr 2018 17:30:55 +0000
treeherdermozilla-central@08f68e2c892c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1408412
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1408412 - Add testcase. r=me
js/src/jit-test/tests/ion/bug1408412.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug1408412.js
@@ -0,0 +1,15 @@
+function g() {
+    return arguments.length;
+}
+function f() {
+    with(this) {};
+    for (var i = 0; i < 100; i++) {
+        g();
+    }
+    var s = "for (var j = 0; j < 1200; j++) assertEq(g(";
+    for (var i = 0; i < 5000; i++)
+        s += i + ",";
+    s += "1), 5001);";
+    eval(s);
+}
+f();