wasm

command
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Rendered for js/wasm

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL