When Object.keys is called in @v8js, no guarantees are made about the order of the keys in the returned array. In practice, they are sorted alphanumerically on the first ten characters of the key. Why ten? Twelve would be nice. Sixteen is also a nice number.
It has nothing to do with the number of characters. 11111111111 > 2**32-2 so it’s no longer what the spec calls a valid “array index”. Like I said earlier, array indices are ordered numerically, and other properties are enumerated in insertion order.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.