(tag, x)
| 129 | assertEquals(5, f4(3), "fallthrough-switch.3"); |
| 130 | |
| 131 | function f4_string(tag, x) { |
| 132 | switch(tag) { |
| 133 | case 'zero': |
| 134 | x++; |
| 135 | case 'two': |
| 136 | x++; |
| 137 | } |
| 138 | return x; |
| 139 | } |
| 140 | |
| 141 | // Symbols |
| 142 | assertEquals(2, f4_string('zero', 0), "fallthrough-string-switch.0"); |