Debugging “Maximum call stack size exceeded”

后端 未结 3 727
眼角桃花
眼角桃花 2020-12-29 04:33

I have a server that I can cause to die with the following output:

events.js:38
EventEmitter.prototype.emit = function(type) {
                                       


        
3条回答
  •  抹茶落季
    2020-12-29 04:55

    The chance of it being a "slightly-too-large chain" seems unlikely.

    It's probably a function calling the event that triggered itself.

    So if the slowing down of the code is making the infinite recursion to stop. My guess would be that you have a queue and with the slower mode its not getting filled up as fast.

    If this doesn't help then I think I need more info. Maybe someone has a catch-all for this though.

提交回复
热议问题