Sha256: 628ceb1c5797effa3c88246fe81029e757fe32dc229383b8f9bf89ea206f02cd

Contents?: true

Size: 405 Bytes

Versions: 43

Compression:

Stored size: 405 Bytes

Contents

/*jsl:option explicit*/
function comma_separated_stmts() {
    var b, i, j;

    /* comma (legit) */
    for (i = 0, j = 0; i < 10; i += 2, j += 4) {
        b = ((i + j) / 2 == i - j);
    }

    /* comma (unclear) */
    for (i = 0; i < 10, j > 20; i++) { /*warning:comma_separated_stmts*/
        j = i;
    }

    /* comma (unclear) */
    b = false, i = 0, j = 0; /*warning:comma_separated_stmts*/
}

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
distil-0.13.0 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.12.6 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.12.4 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.12.3 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.12.2 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.12.1 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.12.0 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.11.8 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.11.6 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.11.5 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.11.4 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.11.3 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.11.1 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.11.0 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.10.4 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.10.3 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.10.1 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.10.0 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.8.4 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.8.2 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js