mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2025-01-01 16:04:51 +03:00
Parse names before we take the module
Otherwise when we try to parse the names there's no module with contents!
This commit is contained in:
parent
fcfc3e32fe
commit
e632dd3fda
@ -1716,8 +1716,8 @@ impl<'a> Context<'a> {
|
||||
}
|
||||
|
||||
fn gc(&mut self) -> Result<(), Error> {
|
||||
let module = mem::replace(self.module, Module::default());
|
||||
self.parse_wasm_names();
|
||||
let module = mem::replace(self.module, Module::default());
|
||||
let result = wasm_gc::Config::new()
|
||||
.demangle(self.config.demangle)
|
||||
.keep_debug(self.config.keep_debug || self.config.debug)
|
||||
|
Loading…
Reference in New Issue
Block a user