title: Why am I not seeing a stack trace with 'throw new Error'?
body: <p>Why am I getting the following error with this simple code below when testing on a node server?</p>
  
  <pre><code>code/app2/i.js:35
          throw new Error("here")
                ^
  Error: here
  </code></pre>
  
  <p>I'm actually expecting to see a stack trace <a href="http://www.aod.zyklon-b.tk/library/web-development/%7BEN%7D_%5BRauch%5D_Smashing_Node.js.pdf">as per the book 'Smashing node.js'</a> (<a href="http://i.imgur.com/VGqYWJy.png">picture of the relevant page 35</a>):</p>
  
  <pre><code>* node uncaught-http-js
  
  /uncaught-http.js:4
    throw new Error("here");
          ^
  Error: This will be uncaught
      at Server.&lt;anonymous&gt; (/uncaught-http.js:4:9)
      at Server.emit(events.js:70:17)
      at HttpParser.onIncoming(http.js:1514:12)
      at HttpParser.onHeadersComplete(http.js:102:31)
      at Socket.andata (http.js:1410:22)
      at TCP.onread(net.js:354:27)
  </code></pre>
  
  <p>but that's not happening.</p>
  
  <p>Here's the code.</p>
  
  <pre><code>function c () {
      b();
  };
  function b () {
      a();
  };
  
  function a () {
      setTimeout(function () {
          throw new Error('here');
      }, 10);
  };
  
  c();
  </code></pre>