bun icon indicating copy to clipboard operation
bun copied to clipboard

Buffer#slice incorrectly handles the start = end = 0 case

Open SheetJSDev opened this issue 3 years ago • 0 comments

Repro on 0.1.6:

console.log(new Buffer(3).slice(0,0).length);

Node prints 0 while Bun prints 3. When start and end are equal, it should be returning a zero-length Buffer.

SheetJSDev avatar Aug 02 '22 08:08 SheetJSDev