| 1 |
(module |
| 2 |
(import "__main_module__" "the_entrypoint" (func $entry)) |
| 3 |
|
| 4 |
(global $nargs (mut i32) (i32.const 0)) |
| 5 |
|
| 6 |
(func (export "entrypoint") (param $nargs i32) |
| 7 |
(global.set $nargs (local.get $nargs)) |
| 8 |
call $entry |
| 9 |
) |
| 10 |
|
| 11 |
(func (export "nargs") (result i32) |
| 12 |
global.get $nargs) |
| 13 |
) |