Maximum call stack size exceeded error

后端 未结 30 2553
独厮守ぢ
独厮守ぢ 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:16

    There is a recursive loop somewhere in your code (i.e. a function that eventually calls itself again and again until the stack is full).

    Other browsers either have bigger stacks (so you get a timeout instead) or they swallow the error for some reason (maybe a badly placed try-catch).

    Use the debugger to check the call stack when the error happens.

提交回复
热议问题