Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ var HandleRequestFn api.HandleRequest = func(api.Request, api.Response) (next bo
// handleRequest is only exported to the host.
//
//go:export handle_request
func handleRequest() (ctxNext uint64) { //nolint
//go:wasmexport handle_request
func handleRequest() (ctxNext uint64) { // nolint
next, reqCtx := HandleRequestFn(wasmRequest{}, wasmResponse{})
ctxNext = uint64(reqCtx) << 32
if next {
Expand All @@ -33,7 +34,8 @@ var HandleResponseFn api.HandleResponse = func(uint32, api.Request, api.Response
// handleResponse is only exported to the host.
//
//go:export handle_response
func handleResponse(reqCtx uint32, isError uint32) { //nolint
//go:wasmexport handle_response
func handleResponse(reqCtx uint32, isError uint32) { // nolint
isErrorB := false
if isError == 1 {
isErrorB = true
Expand Down
2 changes: 1 addition & 1 deletion handler/internal/imports/imports.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build tinygo.wasm
//go:build tinygo.wasm || wasip1

package imports

Expand Down
2 changes: 1 addition & 1 deletion handler/internal/imports/imports_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build !tinygo.wasm
//go:build !tinygo.wasm && !wasip1

package imports

Expand Down