From f63635fce9d56e3af3593d37bb70adfeb4597a3d Mon Sep 17 00:00:00 2001 From: konstin Date: Sun, 15 Apr 2018 15:36:59 +0200 Subject: [PATCH] Fix merge-breakage --- crates/cli-support/src/js.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/cli-support/src/js.rs b/crates/cli-support/src/js.rs index db579968..9c85f38e 100644 --- a/crates/cli-support/src/js.rs +++ b/crates/cli-support/src/js.rs @@ -1338,8 +1338,8 @@ impl<'a, 'b> SubContext<'a, 'b> { self.cx.typescript.push_str("\n"); } - pub fn generate_export_for_class(&mut self, class: &str, export: &shared::Export) { - let wasm_name = shared::struct_function_export_name(class, &export.function.name); + pub fn generate_export_for_class(&mut self, class_name: &str, export: &shared::Export) { + let wasm_name = shared::struct_function_export_name(class_name, &export.function.name); let descriptor = self.cx.describe(&wasm_name); let (js, ts) = self.generate_function( "",