Summary: | Web Inspector: Error displayed as an object when passed as a second argument to console.log | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Nikita Vasilyev <nvasilyev> | ||||||||||
Component: | Web Inspector | Assignee: | Nikita Vasilyev <nvasilyev> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||
Version: | WebKit Local Build | ||||||||||||
Hardware: | All | ||||||||||||
OS: | All | ||||||||||||
Attachments: |
|
Created attachment 262417 [details]
WIP
Created attachment 262433 [details]
Patch
Created attachment 262434 [details]
[Animated GIF] With the patch applied
Comment on attachment 262433 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=262433&action=review r=me > Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js:506 > + const fragment = document.createDocumentFragment(); Maybe its just me, but I think `let` is better than `const` in some of these cases. Comment on attachment 262433 [details] Patch Clearing flags on attachment: 262433 Committed r190571: <http://trac.webkit.org/changeset/190571> All reviewed patches have been landed. Closing bug. |
Created attachment 262414 [details] [Image] Bug try { bar(); } catch(error) { console.log(error); console.log("prefix", error); } Expected: Both errors rendered using ErrorObjectView. Actual: console.log("prefix", error) shows an error as an object outline.