diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2018-11-27 21:46:24 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-27 13:14:24 -0800 |
commit | b183b01c8e6ead0bf5e134e115c5a0fcb3aab367 (patch) | |
tree | 29019ab9c88eb598eaf66588ee41cfe7d9bb6ddb /js/buffer.ts | |
parent | 9ca92bd51bb9a1eb5ceda4daf3ebc2116a39a296 (diff) |
add test for Buffer edge case
Diffstat (limited to 'js/buffer.ts')
-rw-r--r-- | js/buffer.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/buffer.ts b/js/buffer.ts index f53f6b25d..b06259ed0 100644 --- a/js/buffer.ts +++ b/js/buffer.ts @@ -132,8 +132,7 @@ export class Buffer implements Reader, Writer { // Buffer is empty, reset to recover space. this.reset(); if (p.byteLength === 0) { - // TODO This edge case should be tested by porting TestReadEmptyAtEOF - // from the Go tests. + // this edge case is tested in 'bufferReadEmptyAtEOF' test return { nread: 0, eof: false }; } return { nread: 0, eof: true }; |