11cb0ef41Sopenharmony_ci;; Compiled using the WebAssembly Tootkit (https://github.com/WebAssembly/wabt) 21cb0ef41Sopenharmony_ci;; $ wat2wasm simple.wat -o simple.wasm 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_ci(module 51cb0ef41Sopenharmony_ci (import "./wasm-dep.mjs" "jsFn" (func $jsFn (result i32))) 61cb0ef41Sopenharmony_ci (import "./wasm-dep.mjs" "jsInitFn" (func $jsInitFn)) 71cb0ef41Sopenharmony_ci (export "add" (func $add)) 81cb0ef41Sopenharmony_ci (export "addImported" (func $addImported)) 91cb0ef41Sopenharmony_ci (start $startFn) 101cb0ef41Sopenharmony_ci (func $startFn 111cb0ef41Sopenharmony_ci call $jsInitFn 121cb0ef41Sopenharmony_ci ) 131cb0ef41Sopenharmony_ci (func $add (param $a i32) (param $b i32) (result i32) 141cb0ef41Sopenharmony_ci local.get $a 151cb0ef41Sopenharmony_ci local.get $b 161cb0ef41Sopenharmony_ci i32.add 171cb0ef41Sopenharmony_ci ) 181cb0ef41Sopenharmony_ci (func $addImported (param $a i32) (result i32) 191cb0ef41Sopenharmony_ci local.get $a 201cb0ef41Sopenharmony_ci call $jsFn 211cb0ef41Sopenharmony_ci i32.add 221cb0ef41Sopenharmony_ci ) 231cb0ef41Sopenharmony_ci) 24