wasm-bindgen/tests/headless/snippets1.js
Alex Crichton 7e62aff1ce Fix a case where snippet is specified twice
When importing a file across multiple locations in a module make sure it
doesn't trip an assert and it works as expected.
2019-03-05 08:00:47 -08:00

10 lines
111 B
JavaScript

export function get_two() {
return 2;
}
let a = 0;
export function get_stateful() {
a += 1;
return a;
}