Arrays can't be that big, the maximum length is 232-1. According to ECMAScript spec,
Every Array object has a length property whose value is always a
nonnegative integer less than 232.
A String property name P is an array index if and only if
ToString(ToUint32(P)) is equal to P and ToUint32(P) is not equal
to 232−1.