<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:joepeck&#64;webkit.org" title="Joseph Pecoraro &lt;joepeck&#64;webkit.org&gt;"> <span class="fn">Joseph Pecoraro</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: Console could be made useful for very simple await expressions"
   href="https://bugs.webkit.org/show_bug.cgi?id=165681">bug 165681</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
               &nbsp;
           </td>
           <td>joepeck&#64;webkit.org
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: Console could be made useful for very simple await expressions"
   href="https://bugs.webkit.org/show_bug.cgi?id=165681#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: Console could be made useful for very simple await expressions"
   href="https://bugs.webkit.org/show_bug.cgi?id=165681">bug 165681</a>
              from <span class="vcard"><a class="email" href="mailto:joepeck&#64;webkit.org" title="Joseph Pecoraro &lt;joepeck&#64;webkit.org&gt;"> <span class="fn">Joseph Pecoraro</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=165681#c6">comment #6</a>)
<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=165681#c4">comment #4</a>)
&gt; &gt; Created <span class=""><a href="attachment.cgi?id=296882&amp;action=diff" name="attach_296882" title="[PATCH] Proposed Fix">attachment 296882</a> <a href="attachment.cgi?id=296882&amp;action=edit" title="[PATCH] Proposed Fix">[details]</a></span>
&gt; &gt; [PATCH] Proposed Fix
&gt; &gt; 
&gt; &gt; I think I want to play with this a bit more. The `console.info` may be a
&gt; &gt; little too weird since for primitive values it stringifys the primitive. So:
&gt; &gt; 
&gt; &gt;     console.info(1);
&gt; &gt;     console.info(&quot;alpha&quot;);
&gt; &gt; 
&gt; &gt; Look the same as info messages with the string &quot;1&quot; or &quot;alpha&quot;.
&gt; &gt; 
&gt; &gt; We could do something like:
&gt; &gt; 
&gt; &gt;     console.info(&quot;Awaited result&quot;, x)
&gt; 
&gt; That will not get `x` assigned to the proper $result or $n. Is there a way
&gt; we can do that?</span >

No, there is currently no way to programmatically get a $n in the Console, which is effectively what this is trying to do. We would have to add something to the protocol, console, or somehow detect awaited results and act on them.

I think we can use:

    console.info(&quot;%o&quot;, value);

And get pretty good behavior here. Certainly good enough for the common case.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>