| Summary: | [cross file linting] Add to globals quick fix should not apply to no-undef-expression | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Curtis Windatt <curtis.windatt.public> |
| Component: | JS Tools | Assignee: | Curtis Windatt <curtis.windatt.public> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 12.0 | ||
| Target Milestone: | 12.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Add the following to main.js in the Minesweeper demo project var count = 0; counter1 = new Counter ("counter1"); counter2 = new Counter ("counter2"); count += counter1.getValue(); count += counter2.getValued(); counter2.getValued() is not defined. It has the quick fix 'add to globals directive'. This isn't accurate because it is a member expression, not a global object. The fix won't remove the annotation.