aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-1447.js
blob: a7f35e5a43424b92062322740d5525ecbc8fbd82 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
else_with_empty_block: {
    options = {}
    input: {
        if (x)
            yes();
        else {
        }
    }
    expect_exact: "if(x)yes();"
}

else_with_empty_statement: {
    options = {}
    input: {
        if (x)
            yes();
        else
            ;
    }
    expect_exact: "if(x)yes();"
}

conditional_false_stray_else_in_loop: {
    options = {
        evaluate     : true,
        comparisons  : true,
        booleans     : true,
        unused       : true,
        loops        : true,
        side_effects : true,
        dead_code    : true,
        hoist_vars   : true,
        join_vars    : true,
        if_return    : true,
        cascade      : true,
        conditionals : false,
    }
    input: {
        for (var i = 1; i <= 4; ++i) {
            if (i <= 2) continue;
            console.log(i);
        }
    }
    expect_exact: "for(var i=1;i<=4;++i)if(!(i<=2))console.log(i);"
    expect_stdout: true
}
packages/wm.scm (xmonad, ghc-xmonad-contrib)[inputs]: Remove ghc-mtl. * gnu/packages/xml.scm (ghc-hxt)[inputs]: Remove ghc-mtl. Timothy Sample 2018-09-27gnu: perl-crypt-openssl-rsa: Update to 0.31....* gnu/packages/tls.scm (perl-crypt-openssl-rsa): Update to 0.31. Tobias Geerinckx-Rice 2018-09-17gnu: mbedtls-apache: Update to 2.7.6....* gnu/packages/tls.scm (mbedtls-apache): Update to 2.7.6. Leo Famulari 2018-09-14gnu: OpenSSL 1.1: Update to 1.1.1....* gnu/packages/tls.scm (openssl-next): Update to 1.1.1. [arguments]: Patch a `/usr/bin/env` invocation in the 'config' script. Adjust the documentation output. * gnu/packages/patches/openssl-1.1.0-c-rehash-in.patch: Rename and ... * gnu/packages/patches/openssl-1.1-c-rehash-in.patch: ... adjust patch. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. Leo Famulari 2018-09-09gnu: certbot: Update to 0.27.1....* gnu/packages/tls.scm (python-acme): Update to 0.27.1. [arguments]: Use invoke. (certbot): Update to 0.27.1. [native-inputs]: Use python-sphinx-1.6. Leo Famulari