Skip to content

Commit

Permalink
修正胶水 _mem_util.string_store()
Browse files Browse the repository at this point in the history
  • Loading branch information
3dgen committed Apr 19, 2024
1 parent 3ced970 commit 861bc08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backends/compiler_wat/js_binding_tmpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class WaApp {
string_store: (addr, v) => {
const b = this._mem_util.i32_load(addr);
this._mem_util.block_release(b);
let ns = set_string(v);
let ns = this._mem_util.set_string(v);
this._mem_util.i32_store(addr, ns[0]);
this._mem_util.i32_store(addr + 4, ns[1]);
this._mem_util.i32_store(addr + 8, ns[2]);
Expand Down

0 comments on commit 861bc08

Please sign in to comment.