The file wasm_glue.js was copied from the Go wasm port and was modified, most importantly to match the TinyGo calling convention.