Closed Bug 1049495 Opened 11 years ago Closed 11 years ago

Autocomplete hangs on large arrays even though indices can't be autocompleted anyway

Categories

(DevTools :: Console, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 998344

People

(Reporter: Gijs, Unassigned)

Details

In the browser console, run: let myAry = (function(values) { var iterator; iterator = 0; for (; iterator < 12582912; iterator += 1) { values[iterator] = iterator; } return values; })([]); null; Then type in: myAry. and watch the beachballing/hanging. Can we make this behave better? :-) Note that replacing the values[iterator] = iterator; line with a .push() equivalent doesn't help, so I don't *think* this has to do with expando properties or something of that sort - maybe we can make the autocomplete code more clever and detect arrays with Array.isArray ? Although I guess we'd still need to have a clever way to find expandos set on the array while ignoring the numeric indices which I can't talk to by starting off with "myAry." anyway... Don't know if this is super-fixable, but I figured it'd be worth filing either way.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.