Re:WebAssembly Browser Preview
by m12k on Monday October 31, 2016 @01:25PM
(#12838888)
Here's a Node package: https://www.npmjs.com/package/wasm
[ Parent
| on HN ]
Re:WebAssembly Browser Preview
by singularity2001 on Monday October 31, 2016 @05:26PM
(#12841054)
That package is highly deprecated and unnecessary:
You can now simply do
node --expose-wasm
> buffer=fs.readFileSync('test.wasm')
> WebAssembly.compile(buffer)
That appears to use https://github.com/WebAssembly/polyfill-prototype-1, which does not match the current binary format at all.
The current way to do the equivalent would be to use Binaryen's asm2wasm tool.