Skip to content

Commit

Permalink
Restore last u32 when reset
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeGensler committed Jun 17, 2023
1 parent 5f6549e commit af35337
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ function UNSAFE_CLEAR_ALL(): void {
set(0, buffer.byteLength, 0);
u32[1] = buffer.byteLength - 8;
u32[u32.length - 2] = buffer.byteLength - 8;
u32[u32.length - 1] = 1;
}
}

Expand Down

0 comments on commit af35337

Please sign in to comment.