Bug 1473830 - Add testcase r=jandem
authorMatthew Gaudet <mgaudet@mozilla.com>
Wed, 27 Feb 2019 11:53:01 +0000
changeset 519673 888a99e562a7cb1e0280cfc6646b25e8bfd5b629
parent 519672 ef8953aa920da752e3e11346fdd3f27ef4bb1800
child 519674 7b207f663111679955e6e059a1e405f01a0bc0b5
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1473830
milestone67.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 1473830 - Add testcase r=jandem Differential Revision: https://phabricator.services.mozilla.com/D21014
js/src/jit-test/tests/ion/bug1473830.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug1473830.js
@@ -0,0 +1,18 @@
+
+y = [];
+y.forEach(function() {});
+
+x = [];
+for (var i = 0; i < 100; ++i) {
+    x.push(undefined, 1);
+}
+x.sort();
+x.reverse();
+
+x.forEach(function(j) {
+    "use strict";
+    assertEq(this, 4);
+    if (j) {
+        x.forEach(function(z) { });
+    }
+}, 4);
\ No newline at end of file