Chromium Code Reviews
DescriptionDevTools: use 'empty' for array holes
Console used to format holes in an Array very similarly to Array entries that
contained the value 'undefined'. The former showed up as 'undefined x n',
(e.g. `new Array(2)` or `[,,1]`) while the latter showed up as multiple
'undefined's (e.g. `[undefined, undefined]`). The two cases are functionally
different, since `0 in Array(1)` !== `0 in [undefined]`.
This CL reduces confusion by using 'empty x n' instead of 'undefined x n'
for holes in an Array.
BUG=732021
Review-Url: https://codereview.chromium.org/2977463002
Cr-Commit-Position: refs/heads/master@{#486173}
Committed: https://chromium.googlesource.com/chromium/src/+/072313e39845ddbd3174acddc64686b8fa12ca15
Patch Set 1 #
Messages
Total messages: 12 (8 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||