Files
Odin/vendor/wasm
Laytan Laats 8a521648b9 wasm: fix runtime.js even more for wasm64p32
- make the int size configurable in the `runWasm` call, no more
  constants to hunt down and change
- make storeU64 and storeI64 handle bigints, this is needed in the
  odin_dom library
- fix alignment issues within init_event_raw
2024-05-31 20:57:15 +02:00
..
2022-07-10 00:52:59 +01:00

WASM on the Web

This directory is for use when targeting the js_wasm32 target and the packages that rely on it.

The js_wasm32 target assumes that the WASM output will be ran within a web browser rather than a standalone VM. In the VM cases, either wasi_wasm32 or freestanding_wasm32 should be used accordingly.

Example for js_wasm32

<!-- Copy `vendor:wasm/js/runtime.js` into your web server -->
<script type="text/javascript" src="runtime.js"></script>
<script type="text/javascript">
	odin.runWasm(pathToWasm, consolePreElement);
</script>