reflect: makeFunc

This commit is contained in:
visualfc
2025-06-11 21:46:47 +08:00
parent 26aaa65c1d
commit 84729e21b8
2 changed files with 95 additions and 0 deletions

View File

@@ -177,6 +177,7 @@ func Use(goos, goarch string, wasiThreads, changeRpath bool) (export Export, err
"-sEXPORT_KEEPALIVE=1",
"-sEXPORT_ES6=1",
"-sALLOW_MEMORY_GROWTH=1",
"-sRESERVED_FUNCTION_POINTERS=1",
"-sEXPORTED_RUNTIME_METHODS=cwrap,allocateUTF8,stringToUTF8,UTF8ToString,FS,setValue,getValue",
"-sWASM=1",
"-sEXPORT_ALL=1",