[Webkit-unassigned] [Bug 165681] Web Inspector: Console could be made useful for very simple await expressions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 11 17:29:19 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=165681

Joseph Pecoraro <joepeck at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #296882|                            |review?
              Flags|                            |

--- Comment #4 from Joseph Pecoraro <joepeck at webkit.org> ---
Created attachment 296882
  --> https://bugs.webkit.org/attachment.cgi?id=296882&action=review
[PATCH] Proposed Fix

I think I want to play with this a bit more. The `console.info` may be a little too weird since for primitive values it stringifys the primitive. So:

    console.info(1);
    console.info("alpha");

Look the same as info messages with the string "1" or "alpha".

We could do something like:

    console.info("Awaited result", x)

Or go whole hog and add a protocol method saying this is expected to produce a result and treat it specially on the frontend. (It could show number of ongoing await expressions, etc).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161212/481c21ab/attachment-0001.html>


More information about the webkit-unassigned mailing list