Back to Vite

Web Assembly

playground/wasm/index.html

8.2.0637 B
Original Source

Web Assembly

When wasm is inline, result should be 42

Click to run

When wasm is output, result should be 24

Click to run

init function returns WebAssembly.Instance

Click to run

Importing as URL

worker wasm

Direct wasm import, result should be 3

Direct wasm import with wasm imports, result should be 42

Direct wasm import of a global, result should be 42 (number)

wasm importing a global from another wasm, result should be 43

wasm reading a mutable global mutated by another wasm, result should be 9

wasm using js-string builtins and imported string constants, result should be 5