aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-09-25 22:17:31 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-11-23 19:01:39 +0100
commit3ca4814562f6c756e9a110dab7d54cda30267fb1 (patch)
tree7c5e0ea7d0c8f09a3bfc7e9d46f18bf20a733fcb
parent435107ce4faeab84678fcd1d7c44837025c6ae68 (diff)
downloadnissy-core-3ca4814562f6c756e9a110dab7d54cda30267fb1.tar.gz
nissy-core-3ca4814562f6c756e9a110dab7d54cda30267fb1.zip
Recovered comment that appeared only in removed file
-rw-r--r--web/storage.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/storage.cpp b/web/storage.cpp
index d540a5c..780926e 100644
--- a/web/storage.cpp
+++ b/web/storage.cpp
@@ -43,7 +43,12 @@ EM_ASYNC_JS(int, download_and_store, (const char *key, const char *url), {
43 self instanceof WorkerGlobalScope; 43 self instanceof WorkerGlobalScope;
44 console.assert(inBrowser || inWorker, "Non-browsers not supported"); 44 console.assert(inBrowser || inWorker, "Non-browsers not supported");
45 45
46 // See comment in callback.js about this workaround 46 // This is a workaround related to usign WASM64
47 // JavaScript's UTF8ToString expects a pointer argument, which for JS is
48 // of type "number", but WASM64 is passing a BigInt. See also:
49 // https://github.com/emscripten-core/emscripten/issues/21541
50 // (but I could not make the suggested solution work in this case).
51 // TODO: check if there is a better workaround.
47 const non64_url = Number(url); 52 const non64_url = Number(url);
48 const non64_key = Number(key); 53 const non64_key = Number(key);
49 url = UTF8ToString(non64_url); 54 url = UTF8ToString(non64_url);

Generated with cgit - Back to sebastiano.tronto.net