diff options
Diffstat (limited to 'js/src/jit-test/tests/ion/bug1822966.js')
-rw-r--r-- | js/src/jit-test/tests/ion/bug1822966.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1822966.js b/js/src/jit-test/tests/ion/bug1822966.js new file mode 100644 index 0000000000..8ea4821c5b --- /dev/null +++ b/js/src/jit-test/tests/ion/bug1822966.js @@ -0,0 +1,22 @@ +// |jit-test| --no-threads + +function bar() { return Math; } + +function foo() { + for (var i = 0; i < 50; i++) { + const arr = [1]; + const arr2 = [1]; + arr.h = 2; + for (var j = 0; j < 10; j++) { + for (var n = 0; n < 3000; n++) {} + + for (var k = 0; k < 101; k++) { + bar(); + } + } + + arr.a = i; + arr2.x = 1; + } +} +foo() |