From e0c296f588378280bbaed6e4c192ca9defeb20b0 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Tue, 10 Dec 2024 20:22:45 +0100 Subject: [PATCH] fix closure error in wasm release mode --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index b31c821..479eeef 100644 --- a/src/util.c +++ b/src/util.c @@ -42,7 +42,7 @@ EM_JS(void, emsc_js_download_string, (const char* c_filename, const char* c_cont EM_JS(void, emsc_js_download_binary, (const char* c_filename, const uint8_t* ptr, int num_bytes), { const filename = UTF8ToString(c_filename); - const binary = ""; + let binary = ""; for (var i = 0; i < num_bytes; i++) { binary += String.fromCharCode(HEAPU8[ptr+i]); }