Closed slurdge closed 12 years ago
I think this comes from the autoIndexList. The keys are taken as "string". In Firefox&Chrome:
>>> for (var i in [1,2,3]){console.log(typeof i);} string string string
I fixed it by putting the following in ensure_notarraymode:
if (table.uints[i] != null) {
//if i is a string cast it to int
newuints[i - 0 + 1] = table.uints[i];
}
That's pretty serious. I'll check it out when I have a moment.
Thanks for the report, you're right about the cause of this bug. It's been fixed with f59409c88bdcf9b38964f2cdbeff1c158a6a65a5.
Example code:
Prints: