Hmm, I wonder at what n you start to get enough collisions for it to matter in practice. I guess it is up to the implementation, and up to the browsers to create a good heuristic.
When I have used SpiderMonkey (and node.js to some extent) solve problems on kattis, I have never run into a problem of object lookup being a bottleneck. Maybe in some special case?
in practice it never causes problem
i suspect modern js engines are able to switch implementation based on the object "shape"
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.