mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-07-09 03:08:50 +00:00
68d3bc54fb
There is flexibility in exactly the value the initialized length must hold, i.e. if an array is completely empty, it is valid for the initialized length to be any value between zero and the length of the array, as long as the in-memory values below the initialized length have been initialized with a hole value. In the case of 0, the array is packed and the move operation would be a nop, so simply convert the assert to a condition to save some cycles.