4 ms·
> You cannot access the browser APIs from WASM Do you have a reference? I'm confused about why you wouldn't want to access browser APIs.
by 0xdeadbeefbabe 10y ago
> You cannot access the browser APIs from WASM
Do you have a reference? I'm confused about why you wouldn't want to access browser APIs.
- smitherfield 10y agoRight now it's more like Flash or Java applets, running in a sandbox within a sandbox.
- TazeTSchnitzel 10y agoHuh? WebAssembly, like asm.js before it, can access Web APIs (albeit via JS).
- hackcasual 10y agoNot exactly. You have to export those APIs into the WebAssembly module. It's certainly possible to have a WASM implementation that doesn't provide web APIs, but is still WASM.
- aspirin 10y agoThe high level goals of WASM do include access to browser APIs, but the MVP version that is being implemented now, does not yet allow it: https://github.com/WebAssembly/design/blob/master/JS.md https://github.com/WebAssembly/design/blob/master/JS.md WASM code can call external functions defined per module, and the external code can be JS code that interacts with browser APIs. So indirect use of browser APIs is possible.