Documentation
¶
Overview ¶
Command wasm is the WASM entrypoint for the character library: thin syscall/js glue exposing character.LoadBytes to a browser (or any JS host) as a single global function, so a consumer can load a MUGEN/Ikemen character without a Go toolchain of its own.
It carries no logic beyond argument conversion, calling LoadBytes, and marshaling the result to JSON — all real behavior lives in the root character package, which is unit-tested independently of this file (see .vibe/decisions/019-wasm-entrypoint-byte-buffer-loading-and-json-contract.md). This file's own behavior is instead verified by smoke.mjs, a Node.js script that loads the built module the way a real JS consumer would — syscall/js code cannot run under the plain `go test` toolchain.