webpack/test/helpers/supportsWebAssembly.js

8 lines
142 B
JavaScript
Raw Normal View History

module.exports = function supportsWebAssembly() {
try {
return typeof WebAssembly !== "undefined";
2024-07-31 15:37:05 +08:00
} catch (_err) {
return false;
}
};