summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-25 12:37:06 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-25 12:37:06 +0200
commit8bb9649135c384a08b78295b9d07be32d50967d1 (patch)
tree1636d0b721a03e032e2b087ecae2359841196c32 /js/src/jit-test/tests
parent114eb8bf48ca0288f44705853239bdf198eeecdb (diff)
downloadUXP-8bb9649135c384a08b78295b9d07be32d50967d1.tar
UXP-8bb9649135c384a08b78295b9d07be32d50967d1.tar.gz
UXP-8bb9649135c384a08b78295b9d07be32d50967d1.tar.lz
UXP-8bb9649135c384a08b78295b9d07be32d50967d1.tar.xz
UXP-8bb9649135c384a08b78295b9d07be32d50967d1.zip
Bug 1331444 - Keep iterators alive in Ion in for-of loops for IteratorClose due to exceptions
Issue #74
Diffstat (limited to 'js/src/jit-test/tests')
-rw-r--r--js/src/jit-test/tests/for-of/bug-1331444.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/for-of/bug-1331444.js b/js/src/jit-test/tests/for-of/bug-1331444.js
new file mode 100644
index 000000000..9770c584b
--- /dev/null
+++ b/js/src/jit-test/tests/for-of/bug-1331444.js
@@ -0,0 +1,7 @@
+// |jit-test| error: ReferenceError
+
+symbols = [Symbol];
+for (comparator of[, ])
+ for (a of symbols)
+ for (;;)
+ expect;