mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
fix(plugin/runner): Disable wasi env cleanup (#7607)
**Description:** Even after setting shared runtime for the wasi env, `cleanup` still panics. I suspect something internal to cleanup doesn't honor those handles correctly; for now, disable it and try to see if this works. As commented, this is not a huge issue as the plugin usually doesn't have resources to be cleaned up anyway.
This commit is contained in:
parent
efcad6a499
commit
8209594a8c
@ -119,8 +119,13 @@ impl PluginTransformState {
|
||||
guest_program_ptr.1,
|
||||
)?;
|
||||
|
||||
// [TODO]: disabled for now as it always panic if it is being called
|
||||
// inside of tokio runtime
|
||||
// https://github.com/wasmerio/wasmer/discussions/3966
|
||||
// [NOTE]: this is not a critical as plugin does not have things to clean up
|
||||
// in most cases
|
||||
if let Some(wasi_env) = &self.wasi_env {
|
||||
wasi_env.cleanup(&mut self.store, None);
|
||||
//wasi_env.cleanup(&mut self.store, None);
|
||||
}
|
||||
|
||||
ret
|
||||
|
Loading…
Reference in New Issue
Block a user