mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-04-24 01:37:57 +00:00
Strip custom sections in wasm-prune (#150)
* strip custom sections * line width
This commit is contained in:
@@ -330,6 +330,10 @@ pub fn optimize(
|
||||
}
|
||||
}
|
||||
|
||||
// Also drop all custom sections
|
||||
module.sections_mut()
|
||||
.retain(|section| if let elements::Section::Custom(_) = section { false } else { true });
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user