Skip to content

Commit 470ef98

Browse files
authored
benchmark: fix incorrect base64 input in byteLength benchmark
PR-URL: #60841 Fixes: #60836 Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Deokjin Kim <[email protected]>
1 parent 80e0779 commit 470ef98

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)