webpack/test/helpers/supportsWebAssembly.js

8 lines
139 B
JavaScript

module.exports = function supportsWebAssembly() {
try {
return typeof WebAssembly !== "undefined";
} catch (e) {
return false;
}
};