summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorAntonio V <tokageroh@gmail.com>2017-11-26 17:13:20 +0900
committerJames M Snell <jasnell@gmail.com>2017-11-26 09:26:29 -0800
commitfae23a1a91685c97f4bee771eb68eb90ce3dad3d (patch)
treecfafc1b3690d988d61b1394218037eecdf4ae933 /benchmark
parent76dbde19a73d4b86ce24f4221d9a8d01a9e14303 (diff)
downloadandroid-node-v8-fae23a1a91685c97f4bee771eb68eb90ce3dad3d.tar.gz
android-node-v8-fae23a1a91685c97f4bee771eb68eb90ce3dad3d.tar.bz2
android-node-v8-fae23a1a91685c97f4bee771eb68eb90ce3dad3d.zip
benchmark: refactor to use template string
PR-URL: https://github.com/nodejs/node/pull/17313 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/zlib/creation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/zlib/creation.js b/benchmark/zlib/creation.js
index 8dd6f85a85..5046ef50ec 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;