| ... | @@ -8969,7 +8969,7 @@ all your base are belong to us</code></pre> | ... | @@ -8969,7 +8969,7 @@ all your base are belong to us</code></pre> |
| 8969 | <p>Zig supports building for WebAssembly out of the box. There is also a specialized {#syntax#}std.heap.wasm_allocator{#endsyntax#} | 8969 | <p>Zig supports building for WebAssembly out of the box. There is also a specialized {#syntax#}std.heap.wasm_allocator{#endsyntax#} |
| 8970 | memory allocator for WebAssembly environments.</p> | 8970 | memory allocator for WebAssembly environments.</p> |
| 8971 | {#header_open|Freestanding#} | 8971 | {#header_open|Freestanding#} |
| 8972 | <p>For embedded environments like the web browser and nodejs, build as a library using the freestanding OS target. | 8972 | <p>For host environments like the web browser and nodejs, build as a library using the freestanding OS target. |
| 8973 | Here's an example of running Zig code compiled to WebAssembly with nodejs.</p> | 8973 | Here's an example of running Zig code compiled to WebAssembly with nodejs.</p> |
| 8974 | {#code_begin|lib|math#} | 8974 | {#code_begin|lib|math#} |
| 8975 | {#target_wasm#} | 8975 | {#target_wasm#} |