| Summary: | [eslint] no-fallthrough rule does not check all statements after first BlockStatment | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> |
| Component: | JS Tools | Assignee: | Michael Rennie <Michael_Rennie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | 9.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Consider the following snippet: switch(a) { case 2: { var d = 4 ; } break; default: { } } the 'default' will still be marked as a fallthrough, even though it is clearly not. The reason is that we enter the block statement and do not continue past it to check for returnable statements.