mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-15 04:23:12 +03:00
expose forget to wasm
This commit is contained in:
parent
0cbdea5fa9
commit
805738608d
@ -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)
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user