fix(plugin/runner): Disable wasi_env cleanup (#7458)

This commit is contained in:
OJ Kwon 2023-05-28 07:11:01 -07:00 committed by GitHub
parent dcda6498f3
commit 1868d36cfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,9 +119,13 @@ impl PluginTransformState {
guest_program_ptr.1,
)?;
/* [Note]: currently this is disabled: this cleanup is for the multi-threaded
* wasi environment as well as cleaning up file handles which is for the cases
* running wasi binary as standalone. SWC doesn't need neither currently, will
* revisit once we support multithreaded plugin.
if let Some(wasi_env) = &self.wasi_env {
wasi_env.cleanup(&mut self.store, None);
}
}*/
ret
}