I am trying to make a typed array from a SharedArrayBuffer.
let count = 4500;
let sab = new SharedArrayBuffer(count);
let arr = new Int16Array(sab);
now while running the code I noticed that all the components of the array were not getting processed. when I console logging the lengths of the array I got the following output:
// when arr = new Int8Array(sab);
>> 4500
// when arr = new Int16Array(sab);
>> 2250
//when arr = new Int32Array(sab);
>> 1125
If its not a Int8Array its giving a wrong output. I also tried this with different values of count and found the wrong outputs on all of them. I am also not getting any errors in the console.
