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:
@ -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(),
|
||||
|
Reference in New Issue
Block a user