| Summary: | [acorn] Provide a default sourceType of script with a quick fix to change it | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> |
| Component: | JS Tools | Assignee: | Olivier Thomann <Olivier_Thomann> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | CC: | Olivier_Thomann |
| Version: | 12.0 | ||
| Target Milestone: | 12.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Michael Rennie
The other option is call 'allowHashBang' not 'hashBang' After discussion with Olivier, we decided that that default source type should be 'script' and when we encounter the parse errors for import / export we offer a quick fix to update / add a section to a .tern-project file that sets the source type to 'module'. That way we have maximum compatibility with all scripts that do not have import / export statements in them. Bumping this to P2, there currently is no way for an end user to configure the sourceType to properly support es6 modules. Olivier, I pushed your patch to forward 'sourceType' through the .tern-project file: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=9921669919b1b932066111c73aa3cd88ac276acb See bug 493082 for the case with import statements. To check it, please use export statement for now. Delivered. |