diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/ion/bug1814899.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1814899.js b/js/src/jit-test/tests/ion/bug1814899.js new file mode 100644 index 0000000000..43a16de511 --- /dev/null +++ b/js/src/jit-test/tests/ion/bug1814899.js @@ -0,0 +1,22 @@ +function bar(x) { + with ({}) {} + switch (x) { + case 1: + foo(2); + break; + case 2: + gczeal(14, 1); + break; + } + return "a sufficiently long string"; +} + +function foo(x) { + for (var s in bar(x)) { gczeal(0); } +} + +with ({}) {} +for (var i = 0; i < 100; i++) { + foo(0); +} +foo(1); |