Skip to content

Commit

Permalink
refactor(malloc): update delete op (TS4.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Aug 28, 2020
1 parent ef8ab4d commit 609d2da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/malloc/src/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ export class MemPool implements IMemPool {
}

release() {
delete this.u8;
delete this.u32;
delete this.state;
delete this.buf;
delete (<any>this).u8;
delete (<any>this).u32;
delete (<any>this).state;
delete (<any>this).buf;
return true;
}

Expand Down

0 comments on commit 609d2da

Please sign in to comment.