Skip to content

Commit 64d8a04

Browse files
egawatadeadprogram
authored andcommitted
convert offset as signed int into unsigned int in syscall/js.stringVal in wasm_exec.js
1 parent b95effb commit 64d8a04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

targets/wasm_exec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@
321321

322322
// func stringVal(value string) ref
323323
"syscall/js.stringVal": (value_ptr, value_len) => {
324+
value_ptr >>>= 0;
324325
const s = loadString(value_ptr, value_len);
325326
return boxValue(s);
326327
},

0 commit comments

Comments
 (0)