| Summary: | [quickfix] Provide fix for isNaN rule | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> |
| Component: | JS Tools | Assignee: | 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 | ||
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(...).