aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-output.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-22 21:47:11 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-22 21:47:11 -0800
commit15da1e17054f636be5fc670cc05c912108b3529c (patch)
tree7d7188af490e3241ad8f2f75cd29d76a8ebdd0cd /tools/test-js-optimizer-output.js
parent93d966ead44fb7b69b3a4e33e4c55903cac838bd (diff)
js optimizer bug with removing necessary ifs, even though they have empty blocks (they prevent reaching the else)
Diffstat (limited to 'tools/test-js-optimizer-output.js')
-rw-r--r--tools/test-js-optimizer-output.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/test-js-optimizer-output.js b/tools/test-js-optimizer-output.js
index 295144f2..49ea879d 100644
--- a/tools/test-js-optimizer-output.js
+++ b/tools/test-js-optimizer-output.js
@@ -204,5 +204,15 @@ function lua() {
}
} while (0);
}
+ pause();
+ if ($1435 == 0) {
+ __label__ = 176;
+ } else if ($1435 == 1) {} else {
+ __label__ = 180;
+ }
+ pause();
+ if ($1435 == 0) {
+ __label__ = 176;
+ }
}
// EMSCRIPTEN_GENERATED_FUNCTIONS: ["abc", "xyz", "xyz2", "expr", "loopy", "bits", "maths", "hoisting", "demangle", "lua"]