diff options
author | Alex Ramirez <alexander.ramirez@gmail.com> | 2019-07-24 17:24:57 -0500 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-07-30 09:38:00 -0700 |
commit | d349ba29ef00e77a9e379dc452a2de798975a4e3 (patch) | |
tree | 60e7dd680a4e55b9e2312c28fa6fe7716988404f /benchmark/util/inspect.js | |
parent | 0d1b14ac194bc50297c871907c8b5a87d69a08b1 (diff) | |
download | android-node-v8-d349ba29ef00e77a9e379dc452a2de798975a4e3.tar.gz android-node-v8-d349ba29ef00e77a9e379dc452a2de798975a4e3.tar.bz2 android-node-v8-d349ba29ef00e77a9e379dc452a2de798975a4e3.zip |
benchmark: swap var for let in util benchmarks
In benchmark util directory this changes for loops using var to let
when it applies for consistency
PR-URL: https://github.com/nodejs/node/pull/28867
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'benchmark/util/inspect.js')
-rw-r--r-- | benchmark/util/inspect.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/util/inspect.js b/benchmark/util/inspect.js index fd6f6158cd..159d831f76 100644 --- a/benchmark/util/inspect.js +++ b/benchmark/util/inspect.js @@ -30,7 +30,7 @@ const bench = common.createBenchmark(main, { function benchmark(n, obj, options) { bench.start(); - for (var i = 0; i < n; i += 1) { + for (let i = 0; i < n; i += 1) { util.inspect(obj, options); } bench.end(n); |