Node.js 12.3: WebAssembly – Experimental Support for Wasm Modules

Node.js 12.3. is here to provide experimental support for the WebAssembly ES-Modules integration. With this, Node follows the current trend: Everyone is counting on WebAssembly!

Node.js: WebAssembly support

WebAssembly is gradually arriving in the JavaScript world. Also Node.js has now implemented a first support for Wasm modules with the release of v12.3. But the feature is still behind a flag: –experimental-wasm-modules. The Wasm Modules is an integration of the ES Modules into the Wasm standard, which is currently still in Phase 1 of standardization. The aim of the Proposals is that Wasm modules can be loaded into JavaScript via an import statement or < script type=module > tag. The integration semantics in Node.js 12.3 are the same as proposed in the WebAssembly proposal, as Guy Bedford explains in the corresponding pull request on GitHub .

Notable changes

esm:

  • Added the –experimental-wasm-modules flag to support WebAssembly modules (Myles Borins & Guy Bedford) #27659

process:

  • Log errors using util.inspect in case of fatal exceptions (Ruben Bridgewater) #27243

repl:

  • Add process.on(‘uncaughtException’) support (Ruben Bridgewater) #27151

stream:

  • Implemented Readable.from async iterator utility (Guy Bedford) #27660

tls:

  • Expose built-in root certificates (Ben Noordhuis) #26415
  • Support net.Server options (Luigi Pinca) #27665
  • Expose keylog event on TLSSocket (Alba Mendez) #27654

worker:

  • Added the ability to unshift messages from the MessagePort (Anna Henningsen) #27294

Node.js 12.3 also brings some more new features and bug fixes, which can be found in the Release Notes on the Node Blog. These include, for example, the new utility method Readable.from , which converts async iterators into readable streams.

Recent Articles

Most in-demand IT jobs from last decade

Uber for travel, Netflix for leisure and Google for everything is the ideal routine that we all wish to follow, of course with Instagram...

The finest text editor for professional bloggers

It is a fact that blogs have replaced books and magazines due to increasing popularity of the online world. Serious readers subscribe to blogs...

Angular 9 final release released

Angular 9 final is here! The new version was released a little late. Ivy is of course one of the new features, but that's...

VS Code update: New preview features, movable panel and Docker tutorials

The first VS Code update in 2020 was released. In addition to new preview features, parts of the workbench have been revised and the...

Purify: Library for functional programming in TypeScript

The Purify library was developed for functional programming in TypeScript. It should make it possible to use frequently used patterns from functional programming languages...

Related Stories

Leave A Reply

Please enter your comment!
Please enter your name here