My app started throwing these errors. I'm not sure I understand why.
Exception went uncaught:
{ stack: undefined,
arguments: [],
type: 'stack_overflow',
message: [Getter/Setter] }
What's my next step to get to the bottom of what is causing this error and why?
UPDATE: Here's error when not catching at root level:
node.js:116
throw e; // process.nextTick error, or 'err开发者_如何学Goor' event on first tick
^
undefined
Well it definitely appears to be a case of infinite recursion. Here's some buggy code I wrote:
function foo(x) {
foo(x+1);
}
foo(0);
And the resulting exception thrown:
node.js:181
throw e; // process.nextTick error, or 'error' event on first tick
^
undefined
Looks kind of familiar. Once the stack is trashed, so is the trace. I am afraid the solution involves some good old code review.
精彩评论