Hacker News new | ask | show | jobs
by matei_radu 1648 days ago
By default, a WebAssembly module has no access to any host APIs — particularized for the web platform, a running module will have no way of accessing the DOM by default.

When instantiating a module, it can use module imports [1], which can be used to access the DOM through JavaScript calls.

[1]: https://webassembly.github.io/spec/core/syntax/modules.html#...