diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2025-12-21 17:02:41 +0100 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2025-12-21 17:02:41 +0100 |
| commit | 06076e02c0acd0559eeefb32a1a420e4d7243aa7 (patch) | |
| tree | e31a5f6aa7284f9daf0f6fed6b868ff7e9981c64 | |
| parent | ca20a9c8e78df9e0d483589ec58300d05d92b425 (diff) | |
js: improve warning about conflicting memory strategies
| -rw-r--r-- | core/sys/wasm/js/odin.js | 2 |
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); } |