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

Bug 470189

Summary: [quickfix] Provide fix for isNaN rule
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 6.0   
Target Milestone: 9.0   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 485977    

Description Michael Rennie CLA 2015-06-15 10:54:22 EDT
consider the following snippet:

/*globals foobar */
if(foobar === NaN) {
	//do some work
}

There will be a problem on 'NaN' stating we should not compare to NaN. The fix should take the other side of the BinaryExpression and stuff it in isNaN(...).