Reputation: 41
I was wondering if there was a VM made in JS for older browsers to compute wasm.
Im not after speed/performance. Just overall compatibility.
Im not doing anything special just. Trying to run wasm across all browsers.
Upvotes: 3
Views: 1910
Reputation: 70132
Webassemblyjs is a polyfill that runs WebAssemby modules within a JavaScript interpreter. However, the result is likely to be quite slow.
A better option, when using Emscripten, is to compile to asm.js for IE browsers. This option is better supported and likely to provide much better performance.
If your compiler toolchain does not support asm.js directly, the BinaryEn suite of tools includes wasm2js
utility that compiles WebAssembly modules to an asm.js-like format.
Upvotes: 4
Reputation: 2313
You might try wasm-polyfill, although it is no longer actively maintained
Upvotes: 0