mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 14:33:41 +00:00
internal/wasi: update to wasm-tools-go@v0.1.2 (#4326)
* internal/wasi: update to wasm-tools-go@v0.1.1 See https://github.com/ydnar/wasm-tools-go/releases/tag/v0.1.1 for additional information. * internal/wasi: update to wasm-tools-go@v0.1.2 * internal/wasi: regenerate with wasm-tools-go@v0.1.3
This commit is contained in:
@@ -16,8 +16,8 @@ import (
|
||||
// exit: func(status: result)
|
||||
//
|
||||
//go:nosplit
|
||||
func Exit(status cm.Result) {
|
||||
status0 := cm.LowerResult(status)
|
||||
func Exit(status cm.BoolResult) {
|
||||
status0 := cm.BoolToU32(status)
|
||||
wasmimport_Exit((uint32)(status0))
|
||||
return
|
||||
}
|
||||
|
||||
@@ -15,5 +15,5 @@ var Exports struct {
|
||||
// Run the program.
|
||||
//
|
||||
// run: func() -> result
|
||||
Run func() (result cm.Result)
|
||||
Run func() (result cm.BoolResult)
|
||||
}
|
||||
|
||||
@@ -13,6 +13,6 @@ import (
|
||||
//export wasi:cli/run@0.2.0#run
|
||||
func wasmexport_Run() (result0 uint32) {
|
||||
result := Exports.Run()
|
||||
result0 = cm.LowerResult(result)
|
||||
result0 = cm.BoolToU32(result)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user