diff options
Diffstat (limited to 'js/src/jit-test/tests/auto-regress/bug1783507.js')
-rw-r--r-- | js/src/jit-test/tests/auto-regress/bug1783507.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/auto-regress/bug1783507.js b/js/src/jit-test/tests/auto-regress/bug1783507.js new file mode 100644 index 0000000000..a7a4fd7f57 --- /dev/null +++ b/js/src/jit-test/tests/auto-regress/bug1783507.js @@ -0,0 +1,17 @@ +function main(x) { + var ta = new Int32Array(10); + + for (var i = 0; i < 100; ++i) { + // MCompare::Compare_UIntPtr with result only used on bailout. + var r = 0 in ta; + + // Path only entered through bailout condition. + if (x) { + // |r| must be recovered on bailout here. + x(r); + } + } +} + +main(); +main(() => {}); |