goja: TypedArray toSorted on a subarray sorts from the start of the buffer

Fixed · high · Wrong-result bug

A call to toSorted on a typed array view with a non-zero offset, such as subarray(3), sorts elements from the start of the underlying buffer. The result is wrong data on a common path, without an error.

Found: ; reported: ; status since: . Reporter: Mike Murunov

Page for this report · Public report · Fix or proposed fix (see status)

Open in the showcase. Record generated .