diff --git a/benchmark.js b/benchmark.js index 7fd44bf9..3697af17 100644 --- a/benchmark.js +++ b/benchmark.js @@ -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