bun icon indicating copy to clipboard operation
bun copied to clipboard

Buffer#fill should accept string arguments

Open SheetJSDev opened this issue 3 years ago • 0 comments

Repro:

const A = Buffer.allocUnsafe(26).fill('!');
const B = Buffer.allocUnsafe(26).fill("!".charCodeAt(0));
console.log(A); console.log(B);

Node shows two Buffers filled with 0x21 bytes, while Bun does not fill in the first case.

SheetJSDev avatar Aug 02 '22 08:08 SheetJSDev