diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/warp/bug1716931.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/warp/bug1716931.js b/js/src/jit-test/tests/warp/bug1716931.js new file mode 100644 index 0000000000..ae430f53ff --- /dev/null +++ b/js/src/jit-test/tests/warp/bug1716931.js @@ -0,0 +1,13 @@ +// |jit-test| --fast-warmup; --no-threads + +function* foo(x) { + yield* x; + assertEq(true, false); // Unreachable +} + +for (var i = 0; i < 10; i++) { + var count = 0; + for (var o of foo(Array(50))) { + if (count++ > 40) break; + } +}
\ No newline at end of file |