summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1526840.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/bug1526840.js')
-rw-r--r--js/src/jit-test/tests/ion/bug1526840.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1526840.js b/js/src/jit-test/tests/ion/bug1526840.js
new file mode 100644
index 0000000000..08f1ec64ae
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug1526840.js
@@ -0,0 +1,13 @@
+
+setJitCompilerOption("offthread-compilation.enable", 0);
+setJitCompilerOption("baseline.warmup.trigger", 0);
+setJitCompilerOption("ion.warmup.trigger", 0);
+
+for (let j = 0; j < 2; ++j) {
+ let z = j ? 0n : 1;
+ if (z) {
+ z = 0;
+ } else {
+ z = 0;
+ }
+}