wasm-bindgen/tests/wasm/imports_2.js
a1trl9 ad85de50c6
try to fix global / modulaized import ns conflict (#2057)
* 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>
2020-04-15 08:28:29 -05:00

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
}