diff options
Diffstat (limited to 'js/src/jit-test/tests/ion/bug1441012.js')
-rw-r--r-- | js/src/jit-test/tests/ion/bug1441012.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1441012.js b/js/src/jit-test/tests/ion/bug1441012.js new file mode 100644 index 0000000000..de24e4a83f --- /dev/null +++ b/js/src/jit-test/tests/ion/bug1441012.js @@ -0,0 +1,14 @@ +if (getJitCompilerOptions()["ion.warmup.trigger"] > 30) + setJitCompilerOption("ion.warmup.trigger", 30); +function Iterate(items) { + for (var value of items) {} +} +var iterable = { + *[Symbol.iterator]() { + return "pass"; + (yield* iterable); + } +}; +for (var i = 0; i < 20; ++i) { + Iterate(iterable); +} |