Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Issue 2977463002: DevTools: use 'empty' for array holes (Closed)

Created:
3 years, 5 months ago by luoe
Modified:
3 years, 5 months ago
Reviewers:
caseq, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: 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)
luoe
Alternatively, we could use `slots x n` or Firefox's `n empty slots` (http://imgur.com/a/HNGsC) caseq, pfeldman, ...
3 years, 5 months ago (2017-07-08 01:24:53 UTC) #4
pfeldman
lgtm
3 years, 5 months ago (2017-07-12 21:09:16 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2977463002/1
3 years, 5 months ago (2017-07-12 21:10:21 UTC) #7
commit-bot: I haz the power
3 years, 5 months ago (2017-07-13 00:12:39 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/072313e39845ddbd3174acddc646...

Powered by Google App Engine
This is Rietveld 408576698