Open whwhwwhwwh opened 4 days ago
I can definitely change the version test to:
if (iOSSemVer && iOSSemVer.major <= 16 && iOSSemVer.minor < 4)
However the last existing else
block is reachable when enableSIMDInSort
is true
, but useSharedMemory
is false
, so I'd like to keep it. It should really be:
} else if (!useSharedMemory) {
sourceWasm = SorterWasmNonShared;
}
Yes, I agree with your point, haha.
Hello, after conducting my tests, there still seems to be an issue with iOS versions below 16.4. I think the following changes can be made to the code in the file /src/worker/SortWorker.js:
In the code, change the condition
if (iOSSemVer && iOSSemVer.major < 16) {
toif (iOSSemVer && iOSSemVer.major <= 16 && iOSSemVer.minor < 4)
Moreover, according to the previous logic, the if inside the last else if should not be reachable.Therefore, the modified code segment would be: