Skip to content

Commit

Permalink
fix closure error in wasm release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Dec 10, 2024
1 parent 9057b5b commit e0c296f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit e0c296f

Please sign in to comment.