UNPKG

emscripten-wasm-loader

Version:

Common interface to load wasm module into isomorphic environment

8 lines 375 B
"use strict"; 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