Skip to content

Commit 22d3e85

Browse files
semimikohRafaelGSS
authored andcommitted
benchmark: fix incorrect base64 input in byteLength benchmark
PR-URL: #60841Fixes: #60836 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
1 parent 521b25a commit 22d3e85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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
functiongetInput(type,repeat,encoding){
2323
constoriginal=(repeat===1) ? chars[type] : chars[type].repeat(repeat);
2424
if(encoding==='base64'){
25-
Buffer.from(original,'utf8').toString('base64');
25+
returnBuffer.from(original,'utf8').toString('base64');
2626
}
2727
returnoriginal;
2828
}

0 commit comments

Comments
 (0)