Sha256: 5fde20cc958c588248a05c01ef39db788daeaf4e1a59b970dafb45eeb8064654
Contents?: true
Size: 847 Bytes
Versions: 43
Compression:
Stored size: 847 Bytes
Contents
/*jsl:option explicit*/ function missing_default_case() { var i, s; /*missing default case*/ switch (i) { case 1: return 1; } /*warning:missing_default_case*/ /* ambivalence - allow fallthru but don't enforce it */ switch (i) { case 2: /*jsl:fallthru*/ case 3: s += 1; break; default: break; } /* ok - intended use of fallthru */ switch (i) { case 0: s += "?"; /*jsl:fallthru*/ case 1: s += "!"; break; default: break; } /* ok - intended use of fallthru */ switch(i) { case 1: try { i++; } catch(e) {} /*jsl:fallthru*/ case 2: i--; break; default: break; } return ""; }
Version data entries
43 entries across 43 versions & 1 rubygems