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

Bug 426833

Summary: Reported errors past the last token get ignored
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mamacdon
Version: 5.0   
Target Milestone: 5.0 M2   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Michael Rennie CLA 2014-01-28 15:49:50 EST
FUP to bug 426399.

If Esprima reports an error that is past the range of the last token in the stream it will be ignored because the search algorithm has a heuristic to immediately return null if we ask for a token at an index past the end. Instead we should return the last token in the stream - which is likely the one causing the error anyway.