diff --git a/tinygo/v1/exports.go b/tinygo/v1/exports.go index 7da87a2..0912a78 100644 --- a/tinygo/v1/exports.go +++ b/tinygo/v1/exports.go @@ -314,6 +314,11 @@ func _start() uint32 { return worker() } +//export watm_lasterror_v1 +func _lasterror() uint32 { + return uint32(lastError) +} + func saveAndReturnError(err error) uint32 { syscallErrno, ok := err.(syscall.Errno) if !ok {