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

Bug 460388

Summary: 'Invalid typeof comparison' shown on non-comparison
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: JS ToolsAssignee: 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:

Description Mark Macdonald CLA 2015-02-19 17:42:45 EST
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'.
Comment 1 Michael Rennie CLA 2015-02-20 10:37:59 EST
Well thats embarrassing.

Fix + tests:

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=c71cda7a3823f8b4dcba27a93d165ba03cfd6806