You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In $subslice function in prelude, it was checked whether the arguments high/max were in the given slice's range. This was done even when high/max were not given, and the range check didn't work in this case. This commit fixes this issue by ensuring high/max values to use the slice's length and capacity values as default values.
Fixes#732.
https://gopherjs.github.io/playground/#/Sxg5Yfe4Y0
Actual result:
-4096
Expected result:
panic: runtime error: slice bounds out of range
The text was updated successfully, but these errors were encountered: