Source code
Revision control
Copy as Markdown
Other Tools
;; Assembled with the JS shell:
;; os.file.writeTypedArrayToFile("exports-many.wasm",
;; wasmTextToBinary(os.file.readFile("exports-many.wat")))
(module
(func $f10 (result i32)
i32.const 10)
(func $f11 (result i32)
i32.const 11)
(global $g0 i32 (i32.const 0))
(global $g1 i32 (i32.const 1))
(global $g2 i64 (i64.const 2))
(global $g3 f32 (f32.const 3))
(global $g4 f64 (f64.const 4))
(global $g5 (mut i32) (i32.const 5))
(global $g6 (mut i64) (i64.const 6))
(global $g7 externref (ref.null extern))
(global $g8 v128 (v128.const i32x4 8 8 8 8))
(global $g9 (mut v128) (v128.const i32x4 9 9 9 9))
(export "g0" (global $g0))
(export "g1" (global $g1))
(export "g2" (global $g2))
(export "g3" (global $g3))
(export "g4" (global $g4))
(export "g5" (global $g5))
(export "g6" (global $g6))
(export "g7" (global $g7))
(export "g8" (global $g8))
(export "g9" (global $g9))
(export "f10" (func $f10))
(export "f11" (func $f11)))