| Summary: | [eslint][es6] Variable 'undefined' shadows a global member | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Muhammad Mousa <mmousa> |
| Component: | JS Tools | Assignee: | Olivier Thomann <Olivier_Thomann> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | curtis.windatt.public, Michael_Rennie, Olivier_Thomann |
| Version: | 12.0 | Flags: | Michael_Rennie:
review+
|
| Target Milestone: | 12.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Should be easy to fix. Same kind of issues arise with the 'variable is not read' error. Will fix all in the same fix. Fixed as commit 9f82e99e74e1f09ede38b0f93c00b39bf8a51604. |
Examples of ES6 features that cause the warning "Variable 'undefined' shadows a global member." to be thrown: // list matching var [r, , s] = [1,2,3]; // object matching var { letter: name } = { letter: "b" }; // object matching shorthand // binds `op`, `lhs` and `rhs` in scope var {op, lhs, rhs} = () => {}; // Fail-soft destructuring var [f] = []; // Fail-soft destructuring with defaults var [q = 1] = [];