<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: console.trace should show something useful for bound functions"
   href="https://bugs.webkit.org/show_bug.cgi?id=157852#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: console.trace should show something useful for bound functions"
   href="https://bugs.webkit.org/show_bug.cgi?id=157852">bug 157852</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>* TEST
&lt;script&gt;
function foo() {
    bar.bind(null)();
}
function bar() {
    console.trace(&quot;inner&quot;);
}
foo();
&lt;/script&gt;

I get:

  [Log] Trace: inner
    [f] bar (bound.html:6)
    [N] bar
    [f] foo (bound.html:3)
    [S] Global Code (bound.html:8)

So, console.trace does not stop at bound functions.

It doesn't provide a location. It could provide a location. What location should it be? The location of where the function was bound (.bind() invocation), or the location of the target function (that is already available as the next call frame).

Honestly I would have expected this:

  [Log] Trace: inner
    [f] bar (bound.html:6)
    [N] bound bar
    [f] foo (bound.html:3)
    [S] Global Code (bound.html:8)

We can probably trivially get the improved &quot;bound bar&quot; name when creating the trace frames.</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>