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.14.5.a vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.14.4 vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.14.3 vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.14.2 vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.14.2.a vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.14.1 vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.14.1.a vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.14.0 vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.14.0.i vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.14.0.h vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.14.0.g vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.14.0.d vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.14.0.c vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.14.0.b vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.13.6 vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.13.5 vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.13.4 vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.13.3 vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.13.2 vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js
distil-0.13.1 vendor/jsl-0.3.0/tests/warnings/missing_break_for_last_case.js