mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
fix(cli): Buffer.bytes() ArrayBuffer size (#6511)
This commit is contained in:
parent
6be3487f73
commit
6c093c0b5a
2 changed files with 14 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue