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

Bug 496132

Summary: Opening hugetest.js from the smoketests project leads to "Cannot read property 'type' of null" error.
Product: [ECD] Orion Reporter: Olivier Thomann <Olivier_Thomann>
Component: JS ToolsAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P1 CC: Michael_Rennie
Version: 11.0Flags: Michael_Rennie: review+
Target Milestone: 12.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Comment 1 Olivier Thomann CLA 2016-06-14 15:00:14 EDT
I think in this case the fix is to simply check if token is null. The parser doesn't tokenize when the syntax error for using octal decimal in strict mode is found.
With that check, I do get the proper syntax error being reported at the right location.
Comment 2 Olivier Thomann CLA 2016-06-14 15:29:05 EDT
Delivered to master for review. Fix is trivial. A regression test has been added.
Comment 3 Michael Rennie CLA 2016-06-14 16:02:52 EDT
Closing fixed