aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2025-12-21 17:02:41 +0100
committerLaytan Laats <laytanlaats@hotmail.com>2025-12-21 17:02:41 +0100
commit06076e02c0acd0559eeefb32a1a420e4d7243aa7 (patch)
treee31a5f6aa7284f9daf0f6fed6b868ff7e9981c64
parentca20a9c8e78df9e0d483589ec58300d05d92b425 (diff)
js: improve warning about conflicting memory strategies
-rw-r--r--core/sys/wasm/js/odin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sys/wasm/js/odin.js b/core/sys/wasm/js/odin.js
index 43a6b002a..ef203e24d 100644
--- a/core/sys/wasm/js/odin.js
+++ b/core/sys/wasm/js/odin.js
@@ -2107,7 +2107,7 @@ async function runWasm(wasmPath, consoleElement, extraForeignImports, wasmMemory
if (exports.memory) {
if (wasmMemoryInterface.memory) {
- console.warn("WASM module exports memory, but `runWasm` was given an interface with existing memory too");
+ console.warn('WASM module exports memory, but `runWasm` was given an interface with existing memory too. Did you mean to use `-extra-linker-flags:"--import-memory"` to tell the compiler not to export memory?');
}
wasmMemoryInterface.setMemory(exports.memory);
}