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

Issue 143263003: DevTools: Fix console.log for arrays in some corner cases. (Closed)

Created:
6 years, 11 months ago by aandrey
Modified:
6 years, 10 months ago
Reviewers:
JulianMRaya, pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org
Visibility:
Public.

Description

DevTools: Fix console.log for arrays in some corner cases. We didn't show array values defined on Array.prototype[], as well as non-index property names. BUG=320632, 163817 R=pfeldman Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165713

Patch Set 1 #

Total comments: 10

Patch Set 2 : addressed #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+679 lines, -148 lines) Patch
M LayoutTests/http/tests/inspector/inspector-test.js View 1 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/inspector/console/console-format.html View 2 chunks +9 lines, -3 lines 0 comments Download
A LayoutTests/inspector/console/console-format-array-prototype.html View 1 chunk +70 lines, -0 lines 0 comments Download
A LayoutTests/inspector/console/console-format-array-prototype-expected.txt View 1 chunk +62 lines, -0 lines 0 comments Download
M LayoutTests/inspector/console/console-format-expected.txt View 1 2 2 chunks +362 lines, -75 lines 0 comments Download
M LayoutTests/inspector/console/console-object-preview-accessors-expected.txt View 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/inspector/console/console-object-preview-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InjectedScriptSource.js View 1 4 chunks +23 lines, -8 lines 0 comments Download
M Source/devtools/front_end/ConsoleMessage.js View 1 4 chunks +134 lines, -57 lines 0 comments Download
M Source/devtools/front_end/utilities.js View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
aandrey
6 years, 11 months ago (2014-01-21 09:30:50 UTC) #1
aandrey
ping?
6 years, 11 months ago (2014-01-23 14:36:47 UTC) #2
pfeldman
https://codereview.chromium.org/143263003/diff/1/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/143263003/diff/1/Source/core/inspector/InjectedScriptSource.js#newcode1027 Source/core/inspector/InjectedScriptSource.js:1027: var isArrayIndex = (this.subtype === "array" && isArrayIndexPropertyName(name)); Move ...
6 years, 11 months ago (2014-01-23 16:19:02 UTC) #3
pfeldman
lgtm
6 years, 11 months ago (2014-01-23 16:19:09 UTC) #4
aandrey
https://codereview.chromium.org/143263003/diff/1/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/143263003/diff/1/Source/core/inspector/InjectedScriptSource.js#newcode1027 Source/core/inspector/InjectedScriptSource.js:1027: var isArrayIndex = (this.subtype === "array" && isArrayIndexPropertyName(name)); On ...
6 years, 11 months ago (2014-01-24 06:22:03 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aandrey@chromium.org/143263003/240001
6 years, 11 months ago (2014-01-24 06:25:29 UTC) #6
commit-bot: I haz the power
Change committed as 165713
6 years, 11 months ago (2014-01-24 07:35:48 UTC) #7
julianmraya_gmail.com
This fix causes excess console text when the printed array values are typeof 'function'... which ...
6 years, 10 months ago (2014-02-01 08:12:12 UTC) #8
pfeldman
6 years, 10 months ago (2014-02-01 10:08:56 UTC) #9
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/135973010/ by pfeldman@chromium.org.

The reason for reverting is: Console output got messy..

Powered by Google App Engine
This is Rietveld 408576698