diff options
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/zlib/creation.js | 2 |
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; |