NodeJS Error Stack Undefined
<p>I am using node inspector and I noticed <code>new Error()</code> had undefined stacks.</p>

<p>If I assigned this value to a variable, that variable would show that the stack is undefined.</p>

<p>Interestingly enough, running <code>new Error().stack</code> produces a message with the proper stack.</p>

<p>Ideally these errors would have stacks by default so when I log I can know where to look.</p>

<p>I do not understand why this is happening and cannot find information on it. Is there something I'm missing here?</p>