wasmexec

package
v1.6.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Shim []byte

Shim is the TinyGo wasm_exec shim served at /_gothic/wasm_exec.js. Slot reclamation in the _values ref table belongs entirely to the TinyGo runtime, whose syscall/js registers real finalizers (finalizeRef).

There is deliberately only ONE shim. An earlier design embedded a second copy carrying manual reclamation (_releaseValue) for toolchains without finalizers and chose between them at request time from an environment variable the CLI set on the server it launched. Any server started outside that path, a plain `go run` against the app or the EMBEDDED single binary, silently got the manual copy: two independent reclaimers then managed the same table and force-freed slots the runtime still tracked. A single shim removes the pairing and with it the possibility of getting the pairing wrong.

Functions

func Selected

func Selected() []byte

Selected returns the wasm_exec shim bytes to serve.

Types

This section is empty.

Jump to

Keyboard shortcuts

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