Sage/streamlinejs — Issue #71: parser rejects continue inside switch nested in loop
Author: bjouhier
Created: 2012-02-25 20:27:28+00:00
State: open

The following does not compile:

```
"use strict";
if (!require('streamline/module')(module)) return;
var mod0 = 0,
mod1 = 0, loop = 0;
for (var i = 0; i < 100; i++) {
switch (i % 3) {
case 0:
mod0++;
continue;
case 1:
mod1++;
break;
}
loop++;
}
console.log("mod0=" + mod0 + ", mod1=" + mod1 + ", loop=" + loop);
```

Narcissus rejects the `continue` statement because the `switch` shadows the loop.