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

Bug 440516

Summary: [esprima] Support recovery for control statements with no body declarations (was: Parser recovery fails for incomplete if block)
Product: [ECD] Orion Reporter: Ashwin Baliga <ashbaliga>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: mamacdon, Michael_Rennie
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Ashwin Baliga CLA 2014-07-28 04:52:44 EDT
In the following JavaScript snippet, code assist does not show object names "model" and "dataValue" inside the () on line 3:

var model = {
  mySetter: function(dataValue) {
    if ()

  };
};

However, on line 4 if I add {} to close the if block, then code assist works fine on line 3.
Comment 1 Michael Rennie CLA 2016-04-21 11:57:30 EDT
Now that we are using Acorn as our base parser, this is working as intended.

Closing worksforme.