Cyp

Results 16 comments of Cyp

Didn't know #5304 hadn't been merged. Just fixed some merge conflicts.

I can't reproduce with latest master, but I'm not sure whether that means it's fixed, or just because the variables get named in a different order and it happens to...

The issue is that it can't evaluate `bar() || true`, since it could be either `true` or `42` depending on whether `bar()` returns `false` or `42`, and can't currently evaluate...

This version unconditionally eliminates anything after the `if`, even if there is no `return;` statement. ```js function f() { if (true) { } console.log('hi'); } ``` ```js // With patched...

That seems better. It would be good if it could also handle this case somehow: ```js var v = 43; function s() { s.func = func; if (true) { return;...

It seems to work now, although some var declarations can be a bit redundant: ```js var g; function a() { var h = ' '; g += h + i...

Getting harder to find testcases… Another case — `a1` is similar to before, but with `++i` instead of `something = i`. Not sure whether `a2` and `a3` fall into the...

Not finding any remaining issues. Not an issue (and nothing to do with the patch), but this isn't fully simplified: ```js function d1(x) { if (x) ; else ; if...

Seems to be abandoned since last year, as far as I can tell. There have been a few comments from potential contributors about giving up waiting, and switching to [Terser](https://github.com/terser-js/terser)....