Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 461082

Summary: [eslint] no-fallthrough rule does not check all statements after first BlockStatment
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: 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:

Description Michael Rennie CLA 2015-02-27 13:54:20 EST
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.