This commit is contained in:
Elijah 2023-12-10 15:12:11 -05:00
parent 238ae23d77
commit b6627b9a51

View file

@ -92,8 +92,8 @@ export default class VM {
this.#currentChunk = Buffer.alloc(this.#currentChunkSize);
data.copy(this.#currentChunk, 0, 4);
this.#currentChunkOffset = data.length - 4;
return;
} else if (this.#currentChunkSize > this.#currentChunk!.length) {
}
if (this.#currentChunkSize > this.#currentChunk!.length) {
data.copy(this.#currentChunk!, this.#currentChunkOffset);
this.#currentChunkOffset += data.length;
return;