| Summary: | 'Invalid typeof comparison' shown on non-comparison | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | JS Tools | Assignee: | Michael Rennie <Michael_Rennie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Michael_Rennie |
| Version: | 8.0 | ||
| Target Milestone: | 9.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Well thats embarrassing. Fix + tests: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=c71cda7a3823f8b4dcba27a93d165ba03cfd6806 |
1. Create a JS file containing this code: console.log("type: " + typeof foo); 2. The line is flagged with "Invalid typeof comparison", even though there is no comparison against the value returned by 'typeof'.