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

Bug 483604

Summary: The standard error AST does not contain the 'loc' object
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 11.0   
Target Milestone: 11.0   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Rennie CLA 2015-12-03 13:00:00 EST
The latest API in ESLint has a check that the AST passed in must have the 'loc' object on all the nodes. We normally do provide this node, but for fatal parse errors, the 'error AST' does not contain the 'loc' object, which causes incorrect error messages to be displayed.

Steps:
1. enter 'function' as the entire contents of a js file
2. save + check the error message