Maximum call stack size exceeded error

后端 未结 30 3191
独厮守ぢ
独厮守ぢ 2020-11-21 23:51

I am using a Direct Web Remoting (DWR) JavaScript library file and am getting an error only in Safari (desktop and iPad)

It says

Maximum call

30条回答
  •  南旧
    南旧 (楼主)
    2020-11-22 00:21

    Nearly every answer here states that this can only be caused by an infinite loop. That's not true, you could otherwise over-run the stack through deeply nested calls (not to say that's efficient, but it's certainly in the realm of possible). If you have control of your JavaScript VM, you can adjust the stack size. For example:

    node --stack-size=2000

    See also: How can I increase the maximum call stack size in Node.js

提交回复
热议问题