News for hackers. Stuff that matters.
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
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)

Re:WebAssembly Browser Preview by binji on Monday October 31, 2016 @04:01PM (#12840366)
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.

https://github.com/WebAssembly/binaryen