4 ms·
You are reading the wrong spec. That is `Array#slice`, not `TypedArray#slice`. Correct spec: https://tc39.es/ecma262/multipage/indexed-collections.html#sec-%ty
by mofle 3y ago
You are reading the wrong spec. That is `Array#slice`, not `TypedArray#slice`.
Correct spec: https://tc39.es/ecma262/multipage/indexed-collections.html#sec-%typedarray%.prototype.slice https://tc39.es/ecma262/multipage/indexed-collections.html#s...
Steps 14.g.i to 14.g.ix detail the transfer of data from the original TypedArray (O) to the new TypedArray (A). It involves reading values from the original and writing them to the new array's buffer, effectively duplicating the data segment. The process ensures both arrays are distinct with separate memory spaces.