fix(cli): Buffer.bytes() ArrayBuffer size (#6511)

This commit is contained in:
Marcos Casagrande 2020-06-27 13:52:27 +02:00 committed by GitHub
parent 6be3487f73
commit 6c093c0b5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View file

@ -40,7 +40,7 @@ export class Buffer implements Reader, ReaderSync, Writer, WriterSync {
}
bytes(): Uint8Array {
return this.#buf.subarray(this.#off);
return this.#buf.slice(this.#off);
}
empty(): boolean {