3 ms·
When ready, browsers simply enable new features. Until then, it's usually behind a flag you can test with. Compilers generally require flags to enable features
by azakai 7y ago
When ready, browsers simply enable new features. Until then, it's usually behind a flag you can test with.
Compilers generally require flags to enable features. There hasn't been a post-MVP feature that has widespread enough adoption that it would make sense for us to enable it by default.
For developers, the best thing is to make separate builds with the sets of features you want, and pick the right build using something like wasm-feature-detect
https://github.com/GoogleChromeLabs/wasm-feature-detect https://github.com/GoogleChromeLabs/wasm-feature-detect
There is some discussion on something like "fat binaries" which would contain multiple builds and pick between them,
https://github.com/WebAssembly/feature-detection https://github.com/WebAssembly/feature-detection