Is there a WebAssembly interpreter for IE?

Viewed 1202

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.

2 Answers

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.

You might try wasm-polyfill, although it is no longer actively maintained

Related