-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSIE8 inserts empty nodes #31
Comments
WAT!!! That's seriously WTF. No idea how that happens. Really curious to find the cause... |
@IvanSanchez no JS error? (IE 8 does not have Array.prototype.indexOf for example.) |
Doesn't look like there's any error thrown. Also, |
I found something off while tracing around here: https://github.com/mourner/rbush/blob/master/rbush.js#L317 , and then I found http://www.to-string.com/2012/05/29/fixing-splice-in-older-versions-of-internet-explorer-8-and-olders/ Also note that there is a ecmascript shim for At this moment I'm partial to not "fixing" this and just making a note in the READMEs. |
Note about IE8 in readme in order to forget about #31.
mourner/rbush#31 is fixed since 1.4.0
I've found that, after adding enough data, MSIE8 creates nodes with infinite/-infinite coordinates (this will make the bush crash when more items are added, or when searching for an item).
The simplest reproducible case I could come up with is this:
If
_minEntries
and_maxEntries
are set to the default values of 4 and 9, the bug is reproducible after inserting about 30-40 items.The bug is reproducible with MSIE8, or MSIE11 emulating MSIE8. I haven't tried polyfilling ecmascript5 functionality.
The text was updated successfully, but these errors were encountered: