DevTools: console.table incorrectly shows empty cells when some rows have 1000+ properties |
||
Issue description
Chrome Version: (copy from chrome://version)
OS: (e.g. Win7, OSX 10.9.5, etc...)
What steps will reproduce the problem?
(1) Enter this in the DevTools console:
`
var a = [];var b = [];
var max = 2000;
for (var i=0; i < max; i++) {
a[i*max/20] = 1;
b[i*max/20] = 1;
b[i] = 1;
}
console.table([a,b]);
`
(2) See the resulting table with column names with increments of 100
What is the expected result?
Both rows should have 1's filled in all the cells.
What happens instead?
The 2nd row has 1's for only the first half of its columns.
Injected script source's preview logic says to generate up to 1000 properties for each row, which the inspector frontend then uses to generate columns. If some objects have 1000+ properties, we may miss out on their values in later columns.
,
Jul 20 2017
@Comment 1, thanks for the screenshot, I believe that bug has been filed separately in: https://crbug.com/663878 That bug where shallow arrays `console.table([1,2])` just show nothing already has a fix. It should be currently working on Chrome Beta and Canary channels, and will be live on stable Chrome in the near future.
,
Dec 5 2017
Closing for now since this is a rare case that requires more than frontend changes. |
||
►
Sign in to add a comment |
||
Comment 1 by obooc...@gmail.com
, Jul 20 201721.3 KB
21.3 KB View Download