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
According to Core__Array.resi, Array.getUnsafe should throw Not_found if the index is out of bounds. However, this is not the case; it returns undefined instead.
The text was updated successfully, but these errors were encountered:
dsiu
changed the title
Array.getUnsafe doesn't throw Not_found if index doesn't exist in arrayArray.getUnsafe doesn't throw Not_found if index doesn't exist in arrayDec 30, 2023
dsiu
changed the title
Array.getUnsafe doesn't throw Not_found if index doesn't exist in arrayArray.getUnsafe doesn't throw Not_found if index doesn't exist in arrayDec 30, 2023
dsiu
changed the title
Array.getUnsafe doesn't throw Not_found if index doesn't exist in array
Array.getUnsafe doesn't throw Not_found if index doesn't exist in *array*
Dec 30, 2023
dsiu
changed the title
Array.getUnsafe doesn't throw Not_found if index doesn't exist in *array*
Array.getUnsafe doesn't throw Not_found if index doesn't exist in array
Dec 30, 2023
dsiu
changed the title
Array.getUnsafe doesn't throw Not_found if index doesn't exist in arrayArray.getUnsafe doesn't throw Not_found if index doesn't exist in array
Dec 30, 2023
dsiu
changed the title
Array.getUnsafe doesn't throw Not_found if index doesn't exist in arrayArray.getUnsafe does not throw Not_found if index doesn't exist in array
Dec 30, 2023
dsiu
changed the title
Array.getUnsafe does not throw Not_found if index doesn't exist in arrayArray.getUnsafe does not throw Not_found if index doesn't exist in array
Dec 30, 2023
dsiu
added a commit
to dsiu/rescript-stdlib-fp
that referenced
this issue
Dec 30, 2023
…'s `getExn` for `getUnsafe` instead of RescriptCore since there is a bug in RescriptCore's `getUnsafe` not raising `Not_Found` (see: rescript-lang/rescript-core#172)
According to
Core__Array.resi
,Array.getUnsafe
should throwNot_found
if the index is out of bounds. However, this is not the case; it returnsundefined
instead.ReScript Playground Link
https://github.com/rescript-association/rescript-core/blob/d5904bd82ce2fe77ad66619e66ae5ef935eb115f/src/Core__Array.resi#L811-L830
The text was updated successfully, but these errors were encountered: