ianb / doctestjs

Javascript testing made easy and explicit
http://ianb.github.io/doctestjs/
MIT License
142 stars 10 forks source link

Fix for IE9 #9

Closed lloyd closed 13 years ago

lloyd commented 13 years ago

On IE9 the splice() command is b0rked. If there's no explicit howMany parameter, splice behaves as if '0' was provided and removes nothing. A compatible fix for this is to explicitly specify a howmany argument to splice().

My version of IE9 beta is 9.0.7930.16406

The observed bug is that when an object is sufficiently large (multiline), repr tracking was broken, and you'd get erroneous recursion detection.

lloyd commented 13 years ago

oh dammit, this is invalid. fixed in the RC. 9.0.8080.16413

ignore me.

lloyd commented 13 years ago

scratch that! keep it! splice was broken in IE8 so this is still a useful patch.