From e632dd3fda2d555181248ff06e7027fb8d982328 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 6 Sep 2018 22:08:04 -0700 Subject: [PATCH] Parse names before we take the module Otherwise when we try to parse the names there's no module with contents! --- crates/cli-support/src/js/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli-support/src/js/mod.rs b/crates/cli-support/src/js/mod.rs index 43e875582..29c3be868 100644 --- a/crates/cli-support/src/js/mod.rs +++ b/crates/cli-support/src/js/mod.rs @@ -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)