| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2bd241e commit 120d756
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, { | |||
| 12 | 12 | ||
| 13 | 13 | function main(conf) { | |
| 14 | 14 | const n = +conf.n; | |
| 15 | - const fn = zlib['create' + conf.type]; | ||
| 15 | + const fn = zlib[`create${conf.type}`]; | ||
| 16 | 16 | if (typeof fn !== 'function') | |
| 17 | 17 | throw new Error('Invalid zlib type'); | |
| 18 | 18 | var i = 0; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments