That seems to do it.<p><pre><code>  let func = () =&gt; {};
  console.log(func.name); &#x2F;&#x2F; func
</code></pre>
and in stack traces:<p><pre><code>  let func = () =&gt; foo();
  func()
</code></pre>
results in:<p><pre><code>  Uncaught ReferenceError: foo is not defined
  func @ test.js:1</code></pre>