var a = [];
a.length = 10;
a[5] = 1;
console.log(a);
console.dirxml(a);
There's currently 2 array formats with previews, one we use for normal evaluations and dirxml, and another for everything else (console.log).
It's better to have a single consistent format.
Comment 1 by l...@chromium.org
, Nov 18 2016