1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-07-15 12:21:37 +00:00

Sanity check exposed_globals map

Make sure that we don't actually try to expose something when they've
already been written, causing an internal tool panic rather than wrong
JS.
This commit is contained in:
Alex Crichton
2019-01-14 13:09:05 -08:00
parent 666c1e4584
commit c0ddabcca1
2 changed files with 39 additions and 28 deletions
crates/cli-support/src

@ -196,6 +196,7 @@ impl Bindgen {
let (js, ts) = {
let mut cx = js::Context {
globals: String::new(),
globals_written: false,
imports: String::new(),
imports_post: String::new(),
footer: String::new(),