aboutsummaryrefslogtreecommitdiff
string_plus_optimization: {
    options = {
        booleans: true,
        comparisons: true,
        conditionals: true,
        dead_code: true,
        evaluate: true,
        hoist_funs: true,
        if_return: true,
        join_vars: true,
        side_effects: true,
        unused: true,
    }
    input: {
        function foo(anything) {
            function throwing_function() {
                throw "nope";
            }
            try {
                console.log('0' + throwing_function() ? "yes" : "no");
            } catch (ex) {
                console.log(ex);
            }
            console.log('0' + anything ? "yes" : "no");
            console.log(anything + '0' ? "Yes" : "No");
            console.log('' + anything);
            console.log(anything + '');
        }
        foo();
    }
    expect: {
        function foo(anything) {
            function throwing_function() {
                throw "nope";
            }
            try {
                console.log((throwing_function(), "yes"));
            } catch (ex) {
                console.log(ex);
            }
            console.log("yes");
            console.log("Yes");
            console.log('' + anything);
            console.log(anything + '');
        }
        foo();
    }
    expect_stdout: true
}
dd1064918ffd221ffbcc11ba902a'>image: Add fat32 support....Pavel Shlyak 2022-05-23image: Add bootable flag support....Pavel Shlyak 2022-02-07build: image: Account for fixed-size file system structures....Tobias Geerinckx-Rice 2021-12-23build: image: Add optional closure copy support....Mathieu Othacehe