Community
Participate
Working Groups
When local variable is declared twice, it is highlighted as a different variable. Example: function foo() { var x = 1; x = x + 1; var x; x = x + 1; return x; } After positioning cursor at the first "x" it is highlighted only on the 2nd and 3rd lines. After positioning on the last "x" it is highlighted only on lines 5,6,7. Expected behavior: Either produce error/warning about duplicate declaration, or highlight all occurrences, or both.
Bug is still not fixed in WTP 3.4.0.