| Summary: | [ecma6] imports statements are causing an assert error in escope code | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Olivier Thomann <Olivier_Thomann> |
| Component: | JS Tools | Assignee: | Olivier Thomann <Olivier_Thomann> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 11.0 | ||
| Target Milestone: | 12.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Olivier Thomann
I think we have two things we need to fix here: 1) the scope manager should be properly initialized with the values of ecmaVersion and sourceType set in the .tern-project file. 2) We should remove the assert in escope.js because with it, there is no way the user can get the error and use the quickfix from bug 490642 to fix it. If we don't remove the assert statement, we need a way to expose this error to the user or skip it if they are syntax errors inside the ast. When the scope manager fails, the ast already exists. So we could skip the eslint resolution on the tree to show the errors that we already have. Delivered. commit: b6a877ffea80f743e44d8850300f4f0aefcf09a7 |