mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-30 08:51:05 +00:00
* 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.
26 lines
388 B
Rust
26 lines
388 B
Rust
extern crate wasm_bindgen_test_project_builder as project_builder;
|
|
|
|
use project_builder::{project, run};
|
|
|
|
mod api;
|
|
mod char;
|
|
mod classes;
|
|
mod closures;
|
|
mod comments;
|
|
mod dependencies;
|
|
mod duplicates;
|
|
mod enums;
|
|
mod import_class;
|
|
mod imports;
|
|
mod jsobjects;
|
|
mod math;
|
|
mod node;
|
|
mod non_debug;
|
|
mod non_wasm;
|
|
mod simple;
|
|
mod slice;
|
|
mod structural;
|
|
mod typescript;
|
|
mod u64;
|
|
mod validate_prt;
|