Skip to content

Commit

Permalink
fix usage of this instead of self
Browse files Browse the repository at this point in the history
  • Loading branch information
Aandreba committed May 1, 2024
1 parent eb77211 commit 1d69adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wasi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ export default class WASI {
const buffer8 = new Uint8Array(self.inst.exports.memory.buffer);
const end = buf + buf_len;

if (this.hasCrypto) {
if (self.hasCrypto) {
let i = buf;
for (; i < buf_len; ) {
const next_i = i + 65_536;
Expand Down

0 comments on commit 1d69adc

Please sign in to comment.