wasm: Removes accidentally exported memory (#2950)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Crypt Keeper
2022-09-28 16:12:46 +08:00
committed by GitHub
parent 6ea9a61cf3
commit 6882bdf561

View File

@@ -245,7 +245,6 @@ func newWASMPlugin(ctx context.Context, r wazero.Runtime, code []byte) (*wasmMod
// Instantiate a Go-defined module named "env" that exports functions.
_, err := r.NewModuleBuilder("env").
ExportMemory("mem", 100).
ExportFunctions(exportFunctions).
Instantiate(ctx, ns)
if err != nil {