Skip to content

Commit 6c2d034

Browse files
committed
benchmark: fix incorrect base64 input in byteLength benchmark
1 parent bed8e2a commit 6c2d034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/buffers/buffer-bytelength-string.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const chars = {
2222
function getInput(type, repeat, encoding) {
2323
const original = (repeat === 1) ? chars[type] : chars[type].repeat(repeat);
2424
if (encoding === 'base64') {
25-
Buffer.from(original, 'utf8').toString('base64');
25+
return Buffer.from(original, 'utf8').toString('base64');
2626
}
2727
return original;
2828
}

0 commit comments

Comments
 (0)