| 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 Tools | Assignee: | 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: | |||
Now that we are using Acorn as our base parser, this is working as intended. Closing worksforme. |
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.