]> Cypherpunks repositories - gostls13.git/commit
cmd/link: support wasmexport on js/wasm
authorCherry Mui <cherryyz@google.com>
Mon, 19 Aug 2024 19:17:04 +0000 (15:17 -0400)
committerCherry Mui <cherryyz@google.com>
Wed, 21 Aug 2024 01:11:27 +0000 (01:11 +0000)
commitf38d42f2c4c6ad0d7cbdad5e1417cac3be2a5dcb
treed305e0873748c2f413f9b8cb4e354a2fcefbeee8
parent24fd1a043d1a81267d4a8175c114b59a86928ddd
cmd/link: support wasmexport on js/wasm

Add export functions to the wasm module on GOOS=js. (Other parts
work the same way as wasip1.)

Add a test.

Fixes #65199.

Change-Id: Ia22580859fe40631d487f70ee293c12867e0c988
Reviewed-on: https://go-review.googlesource.com/c/go/+/606855
Reviewed-by: Zxilly Chou <zxilly@outlook.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
misc/wasm/wasm_exec.js
src/cmd/link/internal/wasm/asm.go
src/syscall/js/js_test.go