diff --git a/vlib/wasm/tests/common.v b/vlib/wasm/tests/common.v index 04c504b14b880b..b56f8ea15ea122 100644 --- a/vlib/wasm/tests/common.v +++ b/vlib/wasm/tests/common.v @@ -24,6 +24,7 @@ fn find_wasm_validate() !string { return error('could not find wasm-validate executable in thirdparty/ as well, try first `v run cmd/tools/install_wabt.vsh`') } +// validate validates the given wasm code using `wasm-validate` executable. pub fn validate(code []u8) ! { println('validating using: ${wasm_validate_exe}') outfile := os.join_path(os.temp_dir(), 'code_${pid}.wasm')