Sha256: a2ef296c0d0c48f88cf008b9df91e5c952d50f90f66287a4c3f4ed2945e0fc5c

Contents?: true

Size: 444 Bytes

Versions: 43

Compression:

Stored size: 444 Bytes

Contents

/*jsl:option explicit*/
function missing_break_for_last_case(i) {
    switch (i) {
      default:
        /*missing break at end of switch (without code)*/
    } /*warning:missing_break_for_last_case*/

    /*missing break at end of switch (with code)*/
    switch (i) {
      default:
         i++;
    } /*warning:missing_break_for_last_case*/

    /*ok because of fallthru*/
    switch (i) {
      default:
         /*jsl:fallthru*/
    }
}

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
distil-0.8.1 vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.8.0 vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.7.0 vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js