“Stack overflow in line 0” on Internet Explorer

后端 未结 13 2097
时光取名叫无心
时光取名叫无心 2020-12-14 00:48

I realise this is not the ideal place to ask about this in terms of searchability, but I\'ve got a page whose JavaScript code throws \"Stack overflow in line 0\" errors when

13条回答
  •  青春惊慌失措
    2020-12-14 01:21

    Aha!

    I had an OnError() event in some code that was setting the image source to a default image path if it wasn't found. Of course, if the default image path wasn't found it would trigger the error handler...

    For people who have a similar problem but not the same, I guess the cause of this is most likely to be either an unterminated loop, an event handler that triggers itself or something similar that throws the JavaScript engine into a spin.

提交回复
热议问题