aboutsummaryrefslogtreecommitdiff
do_not_update_lhs: {
    options = {
        global_defs: {
            DEBUG: 0,
        },
    }
    input: {
        DEBUG++;
        DEBUG += 1;
        DEBUG = 1;
    }
    expect: {
        DEBUG++;
        DEBUG += 1;
        DEBUG = 1;
    }
}

do_update_rhs: {
    options = {
        global_defs: {
            DEBUG: 0,
        },
    }
    input: {
        MY_DEBUG = DEBUG;
        MY_DEBUG += DEBUG;
    }
    expect: {
        MY_DEBUG = 0;
        MY_DEBUG += 0;
    }
}

mixed: {
    options = {
        evaluate: true,
        global_defs: {
            DEBUG: 0,
            ENV: 1,
            FOO: 2,
        },
    }
    input: {
        var ENV = 3;
        var FOO = 4;
        f(ENV * 10);
        --FOO;
        DEBUG = 1;
        DEBUG++;
        DEBUG += 1;
        f(DEBUG);
        x = DEBUG;
    }
    expect: {
        var ENV = 3;
        var FOO = 4;
        f(10);
        --FOO;
        DEBUG = 1;
        DEBUG++;
        DEBUG += 1;
        f(0);
        x = 0;
    }
    expect_warnings: [
        "WARN: global_defs ENV redefined [test/compress/issue-208.js:1,12]",
        "WARN: global_defs FOO redefined [test/compress/issue-208.js:2,12]",
        "WARN: global_defs FOO redefined [test/compress/issue-208.js:4,10]",
        "WARN: global_defs DEBUG redefined [test/compress/issue-208.js:5,8]",
        "WARN: global_defs DEBUG redefined [test/compress/issue-208.js:6,8]",
        "WARN: global_defs DEBUG redefined [test/compress/issue-208.js:7,8]",
    ]
}
-19 23:22:59 +0200'>2013-07-19Update `TODO'.Ludovic Courtès 2013-07-03Update `NEWS' and `TODO'.Ludovic Courtès 2013-06-14Update `TODO'.Ludovic Courtès 2013-05-17Update `TODO'.Ludovic Courtès 2013-05-10Update `TODO'.Ludovic Courtès 2013-04-12Update `TODO'.Ludovic Courtès 2013-03-27Update `TODO'.Ludovic Courtès 2013-02-17Update `TODO'.Mark H Weaver 2013-01-28Update 'TODO'.Nikita Karetnikov 2013-01-27Update `TODO'.Ludovic Courtès 2013-01-18build: Bump to version 0.2....* configure.ac: Bump version number. Ludovic Courtès 2013-01-15Augment `TODO'.Ludovic Courtès 2013-01-09Augment `TODO'.Ludovic Courtès 2012-12-12daemon: Use `openssl' from $PATH....* daemon.am (-DOPENSSL_PATH): Default to "openssl". * TODO: Mention removal of OpenSSL dependency. Ludovic Courtès 2012-12-09Update `TODO'.Ludovic Courtès 2012-12-04Augment `TODO'.Ludovic Courtès 2012-11-18doc: Add `TODO'....* TODO: New file. * Makefile.am (EXTRA_DIST): Add it. Ludovic Courtès