expose forget to wasm

This commit is contained in:
ibaryshnikov 2019-05-19 14:42:53 +03:00
parent 0cbdea5fa9
commit 805738608d

View File

@ -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)
}
}
};