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

Issue 295633003: Show information about Symbols in DevTools console. (Closed)

Created:
6 years, 7 months ago by Alexandra Mikhaylova
Modified:
6 years, 6 months ago
Reviewers:
aandrey, yurys, pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+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, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Show information about Symbols in DevTools console. BUG=376194 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174945

Patch Set 1 #

Total comments: 5

Patch Set 2 : Wrap Symbol.prototype.toString.call in a try-catch block #

Total comments: 4

Patch Set 3 : Add a test #

Total comments: 2

Patch Set 4 : Tests for ES6 features and Symbols with error #

Patch Set 5 : REBASE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -9 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/inspector/console/console-format-es6.html View 1 2 3 1 chunk +67 lines, -0 lines 0 comments Download
A LayoutTests/inspector/console/console-format-es6-expected.txt View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
A + LayoutTests/inspector/console/console-format-es6-symbols-error.html View 1 2 3 1 chunk +8 lines, -8 lines 0 comments Download
A LayoutTests/inspector/console/console-format-es6-symbols-error-expected.txt View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/inspector/InjectedScriptSource.js View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M Source/devtools/protocol.json View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30 (0 generated)
Alexandra Mikhaylova
6 years, 7 months ago (2014-05-22 15:21:22 UTC) #1
yurys
Can we add a test for this? https://codereview.chromium.org/295633003/diff/1/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/295633003/diff/1/Source/core/inspector/InjectedScriptSource.js#newcode1012 Source/core/inspector/InjectedScriptSource.js:1012: return Symbol.prototype.toString.call(obj); ...
6 years, 7 months ago (2014-05-22 15:25:49 UTC) #2
aandrey
lgtm https://codereview.chromium.org/295633003/diff/1/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/295633003/diff/1/Source/core/inspector/InjectedScriptSource.js#newcode1012 Source/core/inspector/InjectedScriptSource.js:1012: return Symbol.prototype.toString.call(obj); On 2014/05/22 15:25:49, yurys wrote: > ...
6 years, 7 months ago (2014-05-22 15:29:50 UTC) #3
aandrey
https://codereview.chromium.org/295633003/diff/1/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/295633003/diff/1/Source/core/inspector/InjectedScriptSource.js#newcode1012 Source/core/inspector/InjectedScriptSource.js:1012: return Symbol.prototype.toString.call(obj); wrap it in try-catch
6 years, 7 months ago (2014-05-22 15:31:11 UTC) #4
yurys
https://codereview.chromium.org/295633003/diff/1/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/295633003/diff/1/Source/core/inspector/InjectedScriptSource.js#newcode1012 Source/core/inspector/InjectedScriptSource.js:1012: return Symbol.prototype.toString.call(obj); On 2014/05/22 15:29:50, aandrey wrote: > On ...
6 years, 7 months ago (2014-05-22 15:49:36 UTC) #5
aandrey
maybe we should add a test, but disable it until es6 is supported? I guess ...
6 years, 7 months ago (2014-05-22 16:06:57 UTC) #6
Alexandra Mikhaylova
https://codereview.chromium.org/295633003/diff/1/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/295633003/diff/1/Source/core/inspector/InjectedScriptSource.js#newcode1012 Source/core/inspector/InjectedScriptSource.js:1012: return Symbol.prototype.toString.call(obj); On 2014/05/22 15:31:12, aandrey wrote: > wrap ...
6 years, 7 months ago (2014-05-22 16:07:59 UTC) #7
aandrey
https://codereview.chromium.org/295633003/diff/20001/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/295633003/diff/20001/Source/core/inspector/InjectedScriptSource.js#newcode1011 Source/core/inspector/InjectedScriptSource.js:1011: if (typeof obj === "symbol") { ... } https://codereview.chromium.org/295633003/diff/20001/Source/core/inspector/InjectedScriptSource.js#newcode1013 ...
6 years, 7 months ago (2014-05-22 16:10:16 UTC) #8
aandrey
On 2014/05/22 15:49:36, yurys wrote: > https://codereview.chromium.org/295633003/diff/1/Source/core/inspector/InjectedScriptSource.js > File Source/core/inspector/InjectedScriptSource.js (right): > > https://codereview.chromium.org/295633003/diff/1/Source/core/inspector/InjectedScriptSource.js#newcode1012 > ...
6 years, 7 months ago (2014-05-22 16:28:33 UTC) #9
lushnikov
On 2014/05/22 16:28:33, aandrey wrote: > On 2014/05/22 15:49:36, yurys wrote: > > > https://codereview.chromium.org/295633003/diff/1/Source/core/inspector/InjectedScriptSource.js ...
6 years, 7 months ago (2014-05-22 16:34:28 UTC) #10
yurys
What is the status of this CL? Are we landing it?
6 years, 7 months ago (2014-05-26 05:30:54 UTC) #11
Alexandra Mikhaylova
https://codereview.chromium.org/295633003/diff/20001/Source/core/inspector/InjectedScriptSource.js File Source/core/inspector/InjectedScriptSource.js (right): https://codereview.chromium.org/295633003/diff/20001/Source/core/inspector/InjectedScriptSource.js#newcode1011 Source/core/inspector/InjectedScriptSource.js:1011: if (typeof obj === "symbol") On 2014/05/22 16:10:16, aandrey ...
6 years, 7 months ago (2014-05-26 10:38:33 UTC) #12
aandrey
https://codereview.chromium.org/295633003/diff/40001/LayoutTests/inspector/console/console-format-es6.html File LayoutTests/inspector/console/console-format-es6.html (right): https://codereview.chromium.org/295633003/diff/40001/LayoutTests/inspector/console/console-format-es6.html#newcode22 LayoutTests/inspector/console/console-format-es6.html:22: function test() can you take inspector/console/console-format.html as a base ...
6 years, 7 months ago (2014-05-26 11:01:42 UTC) #13
Alexandra Mikhaylova
https://codereview.chromium.org/295633003/diff/40001/LayoutTests/inspector/console/console-format-es6.html File LayoutTests/inspector/console/console-format-es6.html (right): https://codereview.chromium.org/295633003/diff/40001/LayoutTests/inspector/console/console-format-es6.html#newcode22 LayoutTests/inspector/console/console-format-es6.html:22: function test() On 2014/05/26 11:01:42, aandrey wrote: > can ...
6 years, 6 months ago (2014-05-27 12:41:37 UTC) #14
aandrey
lgtm
6 years, 6 months ago (2014-05-27 13:19:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/amikhaylova@google.com/295633003/60001
6 years, 6 months ago (2014-05-27 13:19:58 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-27 13:20:06 UTC) #17
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 6 months ago (2014-05-27 13:20:06 UTC) #18
aandrey
please rebase the patch and cq+
6 years, 6 months ago (2014-05-27 13:20:58 UTC) #19
Alexandra Mikhaylova
The CQ bit was checked by amikhaylova@google.com
6 years, 6 months ago (2014-05-27 15:25:34 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/amikhaylova@google.com/295633003/80001
6 years, 6 months ago (2014-05-27 15:25:51 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-05-27 17:06:06 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-27 17:21:39 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/6260)
6 years, 6 months ago (2014-05-27 17:21:40 UTC) #24
pfeldman
lgtm
6 years, 6 months ago (2014-05-28 07:51:09 UTC) #25
aandrey
The CQ bit was checked by aandrey@chromium.org
6 years, 6 months ago (2014-05-28 08:01:24 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/amikhaylova@google.com/295633003/80001
6 years, 6 months ago (2014-05-28 08:02:37 UTC) #27
commit-bot: I haz the power
Change committed as 174945
6 years, 6 months ago (2014-05-28 08:16:31 UTC) #28
yurys
This change causes compiler error. How did you pass pre-upload checks? Total Closure errors: 1 ...
6 years, 6 months ago (2014-05-28 11:00:09 UTC) #29
aandrey
6 years, 6 months ago (2014-05-28 12:02:53 UTC) #30
Message was sent while issue was closed.
On 2014/05/28 11:00:09, yurys wrote:
> This change causes compiler error. How did you pass pre-upload checks?
> 
> 
> Total Closure errors: 1
> 
> InjectedScriptSource.js and InjectedScriptCanvasModuleSource.js compilation
> output:
>
/sources/chromium/src/third_party/WebKit/Source/core/inspector/InjectedScriptSourceTmp.js:1013:
> ERROR - variable Symbol is undeclared
>                 return Symbol.prototype.toString.call(obj) || "Symbol";
>                        ^
> 
> 1 error(s), 0 warning(s)

Fixed in https://codereview.chromium.org/307533006/

Powered by Google App Engine
This is Rietveld 408576698