From 805738608dd34d44cf3e0989cd13369d9efb1a6c Mon Sep 17 00:00:00 2001 From: ibaryshnikov Date: Sun, 19 May 2019 14:42:53 +0300 Subject: [PATCH] expose forget to wasm --- 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 3bc66cbfb..182134334 100644 --- a/crates/cli-support/src/js/mod.rs +++ b/crates/cli-support/src/js/mod.rs @@ -249,7 +249,7 @@ impl<'a> Context<'a> { format!("{}{}\n", export, contents) } else { assert_eq!(export_name, definition_name); - format!("{}const {} = {};\n", export, export_name, contents) + format!("{}const {name} = {};\n__exports.{name} = {name};", export, contents, name = export_name) } } };