From 120d756e4764877b94e8463017c2f6f533762544 Mon Sep 17 00:00:00 2001 From: Antonio V Date: Sun, 26 Nov 2017 17:13:20 +0900 Subject: [PATCH] benchmark: refactor to use template string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/17313 Reviewed-By: Vse Mozhet Byt Reviewed-By: Michaƫl Zasso Reviewed-By: Daijiro Wachi Reviewed-By: Luigi Pinca Reviewed-By: Gireesh Punathil Reviewed-By: Jon Moss Reviewed-By: James M Snell --- benchmark/zlib/creation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/zlib/creation.js b/benchmark/zlib/creation.js index 8dd6f85a85775c..5046ef50ecff06 100644 --- a/benchmark/zlib/creation.js +++ b/benchmark/zlib/creation.js @@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, { function main(conf) { const n = +conf.n; - const fn = zlib['create' + conf.type]; + const fn = zlib[`create${conf.type}`]; if (typeof fn !== 'function') throw new Error('Invalid zlib type'); var i = 0;