Latest version (1.2.11) fails to detect SIMD (UMD version)
phsultan opened this issue · comments
Hi all,
It looks like the currently available version from UMD at https://unpkg.com/wasm-feature-detect/dist/umd/index.js fails to detect SIMD.
To reproduce
- enable WebAssembly SIMD support for Chrome 90 (in chrome://flags)
- go to https://unpkg.com/wasm-feature-detect/dist/umd/index.js (will redirect to https://unpkg.com/wasm-feature-detect@1.2.11/dist/umd/index.js))
- copy/paste the output to the JS console
- run
wasmFeatureDetect.simd().then(res => { console.log(res); })
=> logsfalse
The previous version at https://unpkg.com/wasm-feature-detect@1.2.10/dist/umd/index.js logs true
as expected.
Let me know if I missed something, thanks for the great work!
This is sadly working as intended.
The SIMD proposal had op-code changes, and Chrome 90 only supports the old SIMD. Chrome 91 goes stable today and we fixed wasm-feature-detect for that. See #43.
Gonna close this, but feel free to re-open if there are any further issues on this.
Thanks a lot for your detailed answer. 👍