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.8.1 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.8.0 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js
distil-0.7.0 vendor/jsl-0.3.0/tests/warnings/comma_separated_stmts.js