aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/runtime/runtime_wasmentry.go
AgeCommit message (Collapse)Author
2024-11-08wasm: correctly return from run() in wasm_exec.jsAyke van Laethem
Instead of hanging forever, it should return the exit code from os.Exit.
2024-11-08wasm: support `//go:wasmexport` functions after a call to `time.Sleep`Ayke van Laethem
This fixes a bug where `//go:wasmexport` functions would not be allowed anymore after a call to `time.Sleep` (when using `-buildmode=default`).
2024-10-18wasm: add //go:wasmexport support to js/wasmAyke van Laethem
This adds support for //go:wasmexport with `-target=wasm` (in the browser). This follows the //go:wasmexport proposal, meaning that blocking functions are not allowed. Both `-buildmode=default` and `-buildmode=c-shared` are supported. The latter allows calling exported functions after `go.run()` has returned.
2024-10-04compiler, runtime: enable go:wasmexport for wasip2 (#4499)Randy Reddig
* compiler: prefer go:wasmexport over go:export * runtime, targets/wasip2: enable -buildmode=c-shared for wasip2 * runtime: rename import from wasi_run to wasiclirun (PR feedback)
2024-10-04wasm: add `//go:wasmexport` support (#4451)Ayke
This adds support for the `//go:wasmexport` pragma as proposed here: https://github.com/golang/go/issues/65199 It is currently implemented only for wasip1 and wasm-unknown, but it is certainly possible to extend it to other targets like GOOS=js and wasip2.