5 ms·
It has been a long time since I have read v8 source code, but I remember it depended on if the array is holey or not, so it would switch back to object based ar
by rat9988 2y ago
It has been a long time since I have read v8 source code, but I remember it depended on if the array is holey or not, so it would switch back to object based array instead of a contiguous array. (there were other conditions but it's the notable one I remember)
- mettamage 2y agoReading ff source code, I saw something similar with a hole variable. I haven’t spent enough time on what happens though. A good way to search the ff source code is to look at uniquely named JS functions and take it from there. I searched on reduceRight and found shift because of it.