Skip to content

Commit

Permalink
benchmark.js: remove unneeded .buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Oct 10, 2021
1 parent 30bb526 commit df3f264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ run(fileNames.map(function(fileName) {
// Apply Brotli on minified output
function(done) {
readBuffer(info.filePath, function(data) {
var output = Buffer.from(brotli.compress(data, true).buffer);
var output = Buffer.from(brotli.compress(data, true));
writeBuffer(info.brFilePath, output, function() {
info.brTime = Date.now();
// Open and read the size of the minified+brotli output
Expand Down

0 comments on commit df3f264

Please sign in to comment.