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

Bug 456964

Summary: [eslint] Eslint fails to validate infinite for loop
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: 8.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Michael Rennie CLA 2015-01-07 16:12:59 EST
Make sure you have the rule to detect assignments in control statement tests enabled and lint the following:

for(;;) {}

you will get the ESLint failure marker on the line. The problem is in the rule code: we don't check properly for the existence of the nodes' test member before trying to access it.