Bug 1408412 - Add testcase. r=me
authorJan de Mooij <jdemooij@mozilla.com>
Thu, 26 Apr 2018 10:27:54 +0200
changeset 472259 996616295128d61343f50270fe79b3ee49b9579b
parent 472258 314f5e5e4502bb4621710fb77678a2d4ae2b0d5f
child 472260 5bde59ad4082e94f3deea06808152b3ad0077876
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [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();