This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 470189 - [quickfix] Provide fix for isNaN rule
Summary: [quickfix] Provide fix for isNaN rule
Status: RESOLVED FIXED
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: JS Tools (show other bugs)
Version: 6.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 9.0   Edit
Assignee: Michael Rennie CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 485977
  Show dependency tree
 
Reported: 2015-06-15 10:54 EDT by Michael Rennie CLA
Modified: 2016-01-15 16:51 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(...).