开发者

What's my next step to trace this error message in Node.js?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜