emscripten-wasm-loader
Version:
Common interface to load wasm module into isomorphic environment
8 lines • 375 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const getroot_1 = require("getroot");
/**
* Naïvely check if current runtime supports native web assembly.
*/
exports.isWasmEnabled = () => !!getroot_1.root.WebAssembly && !!getroot_1.root.WebAssembly.compile && !!getroot_1.root.WebAssembly.instantiate;
//# sourceMappingURL=isWasmEnabled.js.map