From 8bb9649135c384a08b78295b9d07be32d50967d1 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Sun, 25 Mar 2018 12:37:06 +0200 Subject: Bug 1331444 - Keep iterators alive in Ion in for-of loops for IteratorClose due to exceptions Issue #74 --- js/src/jit-test/tests/for-of/bug-1331444.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 js/src/jit-test/tests/for-of/bug-1331444.js (limited to 'js/src/jit-test/tests/for-of') 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; -- cgit v1.2.3 From 6056525ced07af6c6c4f48ea605a2f4589821fdf Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Sun, 25 Mar 2018 14:47:39 +0200 Subject: Bug 1341339 - Check for duplicates in processIterators Issue #74 --- js/src/jit-test/tests/for-of/bug-1341339.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 js/src/jit-test/tests/for-of/bug-1341339.js (limited to 'js/src/jit-test/tests/for-of') diff --git a/js/src/jit-test/tests/for-of/bug-1341339.js b/js/src/jit-test/tests/for-of/bug-1341339.js new file mode 100644 index 000000000..1f88acdaf --- /dev/null +++ b/js/src/jit-test/tests/for-of/bug-1341339.js @@ -0,0 +1,9 @@ +let m = parseModule(` +function* values() {} +var iterator = values(); +for (var i=0; i < 10000; ++i) { + for (var x of iterator) {} +} +`); +m.declarationInstantiation(); +m.evaluation(); -- cgit v1.2.3