Maximum call stack size exceeded error

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

    In my case, I was converting a large byte array into a string using the following:

    String.fromCharCode.apply(null, new Uint16Array(bytes))
    

    bytes contained several million entries, which is too big to fit on the stack.

提交回复
热议问题