blob: 3446e0bc8b2d2dbc48cbeb73383ec82fc017f0ed (
plain)
1
2
3
4
5
6
|
let bytes = wasmTextToBinary(`
(module
(func $f (import "imports" "f") (param i32 i32) (result i32 i32)))`);
new WebAssembly.Instance(new WebAssembly.Module(bytes),
{ 'imports': { 'f': Uint16Array } });
|