aboutsummaryrefslogtreecommitdiff
issue_1639_1: {
    options = {
        booleans: true,
        collapse_vars: true,
        conditionals: true,
        evaluate: true,
        join_vars: true,
        loops: true,
        sequences: true,
        side_effects: true,
    }
    input: {
        var a = 100, b = 10;
        var L1 = 5;
        while (--L1 > 0) {
            if ((--b), false) {
                if (b) {
                    var ignore = 0;
                }
            }
        }
        console.log(a, b);
    }
    expect: {
        for (var a = 100, b = 10, L1 = 5, ignore; --L1 > 0;) {
            --b;
        }
        console.log(a, b);
    }
    expect_stdout: "100 6"
}

issue_1639_2: {
    options = {
        booleans: true,
        collapse_vars: true,
        conditionals: true,
        evaluate: true,
        join_vars: true,
        sequences: true,
        side_effects: true,
    }
    input: {
        var a = 100, b = 10;
        function f19() {
            if (++a, false)
                if (a)
                    if (++a);
        }
        f19();
        console.log(a, b);
    }
    expect: {
        var a = 100, b = 10;
        function f19() {
            ++a, 1;
        }
        f19(),
        console.log(a, b);
    }
    expect_stdout: "101 10"
}

issue_1639_3: {
    options = {
        booleans: true,
        collapse_vars: true,
        conditionals: true,
        evaluate: true,
        sequences: true,
        side_effects: true,
    }
    input: {
        var a = 100, b = 10;
        a++ && false && a ? 0 : 0;
        console.log(a, b);
    }
    expect: {
        var a = 100, b = 10;
        a++,
        console.log(a, b);
    }
    expect_stdout: "101 10"
}
>doc: Link to "Building from Git" instead of quoting command to build Guix....Pierre Neidhardt 2019-12-08doc: Mention how to simulate a `guix pull' before submitting patches....Pierre Neidhardt 2019-12-08doc: Mention how to rebuild guix before submitting patches....Pierre Neidhardt 2019-11-09doc: Mention value /var to localstatedir option....zimoun 2019-09-07doc: Use @lisp instead of @example for Scheme snippets....Ludovic Courtès 2019-07-17doc: Reorder and clarify contributing instructions....Florian Pelz 2019-07-15doc: note how to install git send-email...Arne Babenhauserheide 2019-06-29doc: Remove references to hydra.gnu.org....Tobias Geerinckx-Rice 2019-05-20doc: use pure environment when building from git...Giovanni Biscuolo 2019-03-24doc: Remove instances of powerpc-linux being a supported Guix architecture....Efraim Flashner 2019-02-04doc: Document how to enable qemu binfmt service and how to use it....Danny Milosavljevic 2019-02-04doc: Show how to install Emacs, Guile, and Geiser....Ludovic Courtès 2019-01-22doc: Move "Packaging Guidelines" under "Contributing"....Ludovic Courtès 2018-12-15doc: Replace @command by @code for packages...Pierre Neidhardt 2018-12-15doc: Merge "discourage use of texlive" with existing paragraph on "guix size"...Pierre Neidhardt 2018-12-14doc: Discourage the use of texlive as input...Pierre Neidhardt 2018-12-04Remove most references to hydra.gnu.org....Ludovic Courtès 2018-11-16doc: Mention that ./pre-inst-env is generated....Ludovic Courtès 2018-10-10doc: Add recommendations for good origin URLs....Pierre Neidhardt 2018-07-13etc: snippets: Add guix-commit-message-use-https-home-page....Arun Isaac 2018-07-04doc: Mention the build environment....Ludovic Courtès 2018-06-16doc: Clarify when branches are "frozen"....Marius Bakke 2018-06-09pull: Install the new Guix in a profile....Ludovic Courtès 2018-04-27doc: Add tips for Vim users....Ludovic Courtès 2018-01-17doc: Suggest running guix-daemon with 'sudo -E'....Ludovic Courtès 2017-12-15etc: Add snippets....Ricardo Wurmus 2017-11-08doc: Move paragraph about signature verification to the top....Ricardo Wurmus 2017-09-19doc: Add a note about closing bug threads....Jan Nieuwenhuizen 2017-09-19doc: Add "Sending a Patch Series" subsection....Jan Nieuwenhuizen 2017-08-07Revert "doc: Suggest running guix-daemon with 'sudo -E'."...Leo Famulari 2017-08-06doc: Suggest running guix-daemon with 'sudo -E'....Ludovic Courtès 2017-07-20doc: Show the "git clone" command....Ludovic Courtès 2017-06-25doc: Encourage signature verification....Ricardo Wurmus