wasm-bindgen/tests/all
Alex Crichton d876475ce3
Fix some situations with duplicate imports (#589)
* Fix importing the same identifier from two modules

This needed a fix in two locations:

* First the generated descriptor function needed its hash to include the module
  that the import came from in order to generate unique descriptor functions.
* Second the generation of the JS shim needed to handle duplicate identifiers in
  a more uniform fashion, ensuring that imported names didn't clash.

* Fix importing the same name in two modules

Previously two descriptor functions with duplicate symbols were emitted, and now
only one function is emitted by using a global table to keep track of state
across macro invocations.
2018-07-30 10:50:43 -07:00
..
api.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
char.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
classes.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
closures.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
comments.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
dependencies.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
duplicates.rs Fix some situations with duplicate imports (#589) 2018-07-30 10:50:43 -07:00
enums.rs Remove usage of #[wasm_custom_section] (#509) 2018-07-19 08:57:18 -05:00
import_class.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
imports.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
jsobjects.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
main.rs Fix some situations with duplicate imports (#589) 2018-07-30 10:50:43 -07:00
math.rs Remove usage of #[wasm_custom_section] (#509) 2018-07-19 08:57:18 -05:00
node.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
non_debug.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
non_wasm.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
simple.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
slice.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
structural.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
typescript.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
u64.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00
validate_prt.rs Remove usage of wasm_import_module feature 2018-07-21 19:00:40 -07:00