mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-15 04:23:12 +03:00
ad85de50c6
* use global import map for rename * fix same ns import * cargo fmt * add basic test * move generate_identifier, add comments, add tests * remove leading &mut * remove unnecessary bail * use import_name for global and some refine * Add back in error handling, clean up instruction iteration * Remove unnecessary patch statements Co-authored-by: Alex Crichton <alex@alexcrichton.com>
5 lines
143 B
JavaScript
5 lines
143 B
JavaScript
exports.same_name_from_import = (a) => a * 4;
|
|
|
|
exports.same_js_namespace_from_module = {
|
|
func_from_module_2_same_js_namespace: (a) => a * 6
|
|
} |