aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-10-05 20:33:36 +0100
committerGitHub <noreply@github.com>2025-10-05 20:33:36 +0100
commit0f97382fa3e46da80705c00dfe02f3deb9562e4f (patch)
tree40cd300926c9b8b556c068fc0d55d55e82f281a8 /core
parent3f7fc1e9bf7050c526949b284aef15597d67f1b0 (diff)
parent3edf964b55f3402670de9337dd83cf374932c2bd (diff)
Merge pull request #5759 from Creativty/fix_wasm_undefined_this_mem
Fix #5225 wasm odin.js undefined this.mem
Diffstat (limited to 'core')
-rw-r--r--core/sys/wasm/js/odin.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/sys/wasm/js/odin.js b/core/sys/wasm/js/odin.js
index 2a8ccdd5e..f4f73a42a 100644
--- a/core/sys/wasm/js/odin.js
+++ b/core/sys/wasm/js/odin.js
@@ -1937,7 +1937,7 @@ function odinSetupDefaultImports(wasmMemoryInterface, consoleElement, memory) {
if (buf_len > 0 && buf_ptr) {
let n = Math.min(buf_len, str.length);
str = str.substring(0, n);
- this.mem.loadBytes(buf_ptr, buf_len).set(new TextEncoder().encode(str))
+ wasmMemoryInterface.loadBytes(buf_ptr, buf_len).set(new TextEncoder().encode(str))
return n;
}
}
@@ -2001,7 +2001,7 @@ function odinSetupDefaultImports(wasmMemoryInterface, consoleElement, memory) {
if (buf_len > 0 && buf_ptr) {
let n = Math.min(buf_len, str.length);
str = str.substring(0, n);
- this.mem.loadBytes(buf_ptr, buf_len).set(new TextEncoder().encode(str))
+ wasmMemoryInterface.loadBytes(buf_ptr, buf_len).set(new TextEncoder().encode(str))
return n;
}
}