blob: 220fcf8d3de8b28d9cf83b684d91ed26f8d52540 (
plain)
1
2
3
4
5
6
7
8
9
|
let bytes = wasmTextToBinary(`
(module
(func $f (param) (result i32 i32)
(local i32)
(loop)
(i32.const 0)
(i32.const 1)))`);
new WebAssembly.Instance(new WebAssembly.Module(bytes));
|