git ssb

0+

wanderer🌟 / js-primea-wasm-container



Tree: 3a404bebd50b72c99fee87e44047a1129695ff64

Files: 3a404bebd50b72c99fee87e44047a1129695ff64 / tests / wast / globals.wast

564 bytesRaw
1(module
2 (import "memory" "externalize" (func $externalize (param i32 i32) (result i32)))
3 (import "memory" "internalize" (func $internalize (param i32 i32 i32 i32)))
4 (global (mut i32) (i32.const -2))
5 (global (mut i32) (i32.const -2))
6 (memory (export "memory") 1)
7 (data (i32.const 0) "test")
8 (func $store
9 i32.const 0
10 i32.const 4
11 call $externalize
12 set_global 0
13 )
14
15 (func $load
16 get_global 0
17 i32.const 0
18 i32.const 5
19 i32.const 4
20 call $internalize
21 )
22 (export "load" (func $load))
23 (export "store" (func $store)))
24

Built with git-ssb-web