IE8 native JSON.parse bug causes stack overflow

前端 未结 6 1216
生来不讨喜
生来不讨喜 2020-12-13 00:45

TL;DR: Adding any non-built-in functions to Array.prototype AND Function.prototype will cause the IE8 native JSON parser to get a stack overflow when parsing any JSO

6条回答
  •  无人及你
    2020-12-13 01:20

    I've had this question with no accepted answers sitting around for quite a while, so just to get rid of it, I'll answer it myself.

    Eric Law at Microsoft says:

    The JavaScript team reports that this is a known issue in the JavaScript engine.

提交回复
热议问题