aboutsummaryrefslogtreecommitdiff
case_1: {
    options = {
        dead_code: true,
        evaluate: true,
        switches: true,
    }
    input: {
        var a = 0, b = 1;
        switch (true) {
          case a || true:
          default:
            b = 2;
          case true:
        }
        console.log(a, b);
    }
    expect: {
        var a = 0, b = 1;
        switch (true) {
          case a || true:
            b = 2;
        }
        console.log(a, b);
    }
    expect_stdout: "0 2"
}

case_2: {
    options = {
        dead_code: true,
        evaluate: true,
        switches: true,
    }
    input: {
        var a = 0, b = 1;
        switch (0) {
          default:
            b = 2;
          case a:
            a = 3;
          case 0:
        }
        console.log(a, b);
    }
    expect: {
        var a = 0, b = 1;
        switch (0) {
          case a:
            a = 3;
        }
        console.log(a, b);
    }
    expect_stdout: "3 1"
}
nifest. Ludovic Courtès 2022-08-06disarchive-manifest: Exclude the Chromium tarball....* etc/disarchive-manifest.scm (disarchive-collection): Exclude "chromium-" tarballs. Ludovic Courtès 2022-08-05disarchive-manifest: Filter out origins without a hash....* etc/disarchive-manifest.scm (disarchive-collection): Filter out origins with a phony hash. Ludovic Courtès 2022-08-05disarchive-manifest: Handle tar.xz archives....* etc/disarchive-manifest.scm (tarball-origin?): Add ".tar.xz". Ludovic Courtès 2021-10-09disarchive-manifest: Provide valid 'version' string....* etc/disarchive-manifest.scm <top level>: Turn 'version' field into a string. Ludovic Courtès 2021-09-14etc: Add 'disarchive-manifest.scm'....* etc/disarchive-manifest.scm: New file. * Makefile.am (EXTRA_DIST): Add it. Ludovic Courtès