topdown: Fix panic in array.slice due to incorrect clamping
The built-in function implemented clamping in an odd way. With this change, the stopIndex will always be [0, len(arr)] and the startIndex will always be [0, clamped_stopIndex]. Fixes #2320 Signed-off-by: Torin Sandall <torinsandall@gmail.com>
T
Torin Sandall committed
bbcbbe175aae928b2d51e29ddd5116f750922334
Parent: dd04920