Skip to content

Commit 5b119ee

Browse files
Update documentation/content/en/book/04-using-functions/wasm-functions.md
Co-authored-by: Copilot <[email protected]>
1 parent 0cd1631 commit 5b119ee

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

documentation/content/en/book/04-using-functions/wasm-functions.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ func run() error {
180180
return nil
181181
}
182182

183+
// process applies the same transformation logic as in the non-WASM build.
184+
// Ensure this implementation matches the one in main.go.
185+
func process(rl *fn.ResourceList) (bool, error) {
186+
// TODO: copy the implementation from main.go so behavior is consistent.
187+
return false, nil
188+
}
183189
func transform(input []byte) ([]byte, error) {
184190
return fn.Run(fn.ResourceListProcessorFunc(process), input)
185191
}

0 commit comments

Comments
 (0)