Bug 1519700: Add testcase to jit-tests r=djvj
authorIain Ireland <iireland@mozilla.com>
Wed, 16 Jan 2019 19:02:05 +0000
changeset 514120 9882be81c9e458ee7db63788f01ac8a85a47df72
parent 514119 0b1911ea8b8b9168ec413904aae1bdab30d5ad87
child 514121 76a02546878ffda22bd394b57b0708f89f2fa0fc
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdjvj
bugs1519700
milestone66.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 1519700: Add testcase to jit-tests r=djvj Differential Revision: https://phabricator.services.mozilla.com/D16512
js/src/jit-test/tests/for-of/bug1519700.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/for-of/bug1519700.js
@@ -0,0 +1,23 @@
+function* wrapNoThrow() {
+    let iter = {
+        [Symbol.iterator]() {
+            return this;
+        },
+        next() {
+            return {};
+        },
+        return () {}
+    };
+    for (const i of iter)
+        yield i;
+}
+function foo() {
+    l2: for (j of wrapNoThrow()) {
+        for (i of [1, 2, 3])
+            break l2;
+        return false;
+    }
+}
+try {
+    foo();
+} catch {}