fill grew the list instead of doing nothing
When start was greater than end, fill glued overlapping slices of the list together: fill([1, 2, 3, 4], "x", 4, 1) gave [1, 2, 3, 4, 3, 2, 3]. Elements were duplicated and no value was written at all.
An empty range leaves the list alone
start and end are clamped to the range from 0 to the list length, with negative indices handled as in slices, and values are written in place in a loop. When start is not less than end the list stays the same, as with lodash's _.fill.