Chromium Code Reviews
DescriptionRevert of DevTools: merge array formatting logic (patchset #7 id:120001 of https://codereview.chromium.org/2566443004/ )
Reason for revert:
Console previews for arrays have been compromised. When logging an array with 100+ non-empty properties, the overflow properties (after the first 100 in the preview) show up as 'undefined x N' when they are not undefined.
Repro case:
var b = new Array(200);
b.fill(2);
console.log(b);
crbug.com/675259
Original issue's description:
> DevTools: merge array formatting logic
>
> This CL makes array formatting consistent and prepares
> RemoteObjectPreviewFormatter (ROPF) to introduce character cutoff logic.
> Today, array formatting is split between two files. The logic in
> ConsoleViewMessage has been folded into ROPF.js with all arrays showing gaps
> with 'undefined x n' as much as possible then falling back to 'key: value'.
>
> For background on character cutoff logic, see C1 in the console preview doc.
>
> BUG=666882
>
> Committed: https://crrev.com/50c41a1483a808a3394581c717a18cf00773877e
> Cr-Commit-Position: refs/heads/master@{#438294}
TBR=lushnikov@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=675259
Committed: https://crrev.com/631b841680800d7ea174cc898a4f0c5884111b91
Cr-Commit-Position: refs/heads/master@{#439286}
Patch Set 1 #Messages
Total messages: 18 (11 generated)
|