Hacker News new | ask | show | jobs
by abuldauskas 2783 days ago
Node 11 now comes with v8 v7.0, does this mean Webassembly threads are supported? Or are they behind a flag?
2 comments

I was curious about this also, but couldn't find an answer. The most relevant thing I learned was that WebAssembly is exposed as a global object since Node.js 8.0.0, without a runtime flag.

https://nodejs.org/api/globals.html#globals_webassembly

A list of WebAssembly features implemented by Node.js can be found here (the right most column):

https://developer.mozilla.org/en-US/docs/WebAssembly#Browser...

ReferenceError: SharedArrayBuffer is not defined

I couldn't get a basic example working because `SharedArrayBuffer` isn't available in node. I wouldn't be surprised if the other bits aren't either.