convert offset as signed int into unsigned int in syscall/js.stringVal in wasm_exec.js

This commit is contained in:
Egawa Takashi
2025-03-01 02:17:06 +09:00
committed by Ron Evans
parent b95effbdd7
commit 64d8a04308
+1
View File
@@ -321,6 +321,7 @@
// func stringVal(value string) ref
"syscall/js.stringVal": (value_ptr, value_len) => {
value_ptr >>>= 0;
const s = loadString(value_ptr, value_len);
return boxValue(s);
},