aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-1443.js
blob: 18554ff69bfd9c5039d55b64215a1cc59bda5d1b (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// tests assume that variable `undefined` not redefined and has `void 0` as value

unsafe_undefined: {
    options = {
        conditionals: true,
        if_return: true,
        unsafe_undefined: true,
    }
    mangle = {}
    input: {
        function f(undefined) {
            return function() {
                if (a)
                    return b;
                if (c)
                    return d;
            };
        }
    }
    expect: {
        function f(n) {
            return function() {
                return a ? b : c ? d : n;
            };
        }
    }
}

keep_fnames: {
    options = {
        conditionals: true,
        if_return: true,
        unsafe_undefined: true,
    }
    mangle = {
        keep_fnames: true
    }
    input: {
        function f(undefined) {
            return function() {
                function n(a) {
                    return a * a;
                }
                if (a)
                    return b;
                if (c)
                    return d;
            };
        }
    }
    expect: {
        function f(r) {
            return function() {
                function n(n) {
                    return n * n;
                }
                return a ? b : c ? d : r;
            };
        }
    }
}
.scm (pcre/fixed): Likewise. * gnu/packages/perl.scm (perl/fixed): Likewise. * gnu/packages/ruby.scm (ruby-2.3, ruby-2.2, ruby-2.1) (ruby-1.8): Likewise. * gnu/packages/tls.scm (gnutls-3.5.13, gnutls/guile-2.2): Likewise. * gnu/packages/xml.scm (expat-2.2.1): Likewise. Ludovic Courtès 2017-05-24Merge branch 'master' into core-updatesRicardo Wurmus 2017-05-07gnu: pcre2: Fix build configuration for pcre2....* gnu/packages/pcre.scm (pcre2)[arguments]: Remove unknown configure flag '--enable-unicode-properties' and adapt other flags for pcre2. Leo Famulari 2017-05-07gnu: pcre2: Fix CVE-2017-8786....* gnu/packages/patches/pcre2-CVE-2017-8786.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/pcre.scm (pcre2)[source]: Use it. Leo Famulari 2017-04-10gnu: pcre: Patch CVE-2017-7186....* gnu/packages/patches/pcre-CVE-2017-7186.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/pcre.scm (pcre)[replacement]: New field. (pcre/fixed): New variable. Ludovic Courtès 2017-04-10gnu: pcre2: Patch CVE-2017-7186....* gnu/packages/patches/pcre2-CVE-2017-7186.patch: New file. * gnu/packages/pcre.scm (pcre2)[source]: Use it. * gnu/local.mk (dist_patch_DATA): Add it. Ludovic Courtès 2017-03-09Merge branch 'master' into core-updatesLudovic Courtès 2017-03-07gnu: pcre2: Update to 10.23....* gnu/packages/pcre.scm (pcre2): Update to 10.23. [source]: Remove patch. [arguments]: Add phase to substitute /bin/echo reference. * gnu/packages/patches/pcre2-CVE-2016-3191.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it. Marius Bakke 2017-01-23gnu: pcre: Update to 8.40....* gnu/packages/pcre.scm (pcre): Update to 8.40. [source]: Remove obsolete patch 'pcre-CVE-2016-3191.patch'. Leo Famulari