The bounds check in the spec for array.init_elem currently has the following text with "larger than or equal to". Should it be "larger than" instead?
If d (or s) and n are both zero, then this traps if the array is empty (or the segment is).
I don't think this is the intended behavior since array.new_elem checks "larger than" and the tests also don't trap in this case (e.g., this test case).
The bounds check in the spec for
array.init_elem
currently has the following text with "larger than or equal to". Should it be "larger than" instead?If
d
(ors
) andn
are both zero, then this traps if the array is empty (or the segment is).I don't think this is the intended behavior since
array.new_elem
checks "larger than" and the tests also don't trap in this case (e.g., this test case).