(module
(import "console" "log" (func $log (param i32)))
(func $main
;; load two values onto the stack
i32.const 10
i32.const 20
;; drop the top item from the stack (`20`)
drop
call $log ;; log the top value on the stack (`10`)
)
(start $main)
)
const url = '{%wasm-url%}';
await WebAssembly.instantiateStreaming(fetch(url), { console });