Skip to content

Commit

Permalink
use defined writeSync method
Browse files Browse the repository at this point in the history
  • Loading branch information
bthaile committed Aug 13, 2024
1 parent f573979 commit f771345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wasm_exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
const fd = getInt64(sp + 8);
const p = getInt64(sp + 16);
const n = this.mem.getInt32(sp + 24, true);
fs.writeSync(fd, new Uint8Array(this._inst.exports.mem.buffer, p, n));
this.writeSync(fd, new Uint8Array(this._inst.exports.mem.buffer, p, n));
},

// func resetMemoryDataView()
Expand Down

0 comments on commit f771345

Please sign in to comment.