I have noticed that even with "show stack trace with errors" enabled from the drop down, only errors that occur seem to have traces, but when I do: throw new Error('foo');
I do not see any stack trace for it even though it seems to appear in the console exactly the same way as other errors that occur such as iDoNotExist()
.
Is there something I am missing?
It also seems that I get the stack trace for calling console.error('foo');
. Odd.
It should be noted that stack traces do occur on Webkit Inspector and Opera when doing throw new Error('foo');
.