Maximum call stack size exceeded error

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

    Have come accross the same issue, coulnd't figured out what's wrong started blaming Babel ;)

    Having code not returning any exception in browsers :

    if (typeof document.body.onpointerdown !== ('undefined' || null)) {
    

    issue was badly created || (or) part as babel creates its own type check:

    function _typeof(obj){if(typeof Symbol==="function"&&_typeof(Symbol.iterator)==="symbol")
    

    so removing

    || null
    

    made babel transpilation worked.

提交回复
热议问题