mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-15 12:44:31 +03:00
7e62aff1ce
When importing a file across multiple locations in a module make sure it doesn't trip an assert and it works as expected.
10 lines
111 B
JavaScript
10 lines
111 B
JavaScript
export function get_two() {
|
|
return 2;
|
|
}
|
|
|
|
let a = 0;
|
|
export function get_stateful() {
|
|
a += 1;
|
|
return a;
|
|
}
|