summaryrefslogtreecommitdiff
path: root/benchmark/timers/timers-cancel-pooled.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/timers/timers-cancel-pooled.js')
-rw-r--r--benchmark/timers/timers-cancel-pooled.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/timers/timers-cancel-pooled.js b/benchmark/timers/timers-cancel-pooled.js
index 5045983210..30dbd7bc00 100644
--- a/benchmark/timers/timers-cancel-pooled.js
+++ b/benchmark/timers/timers-cancel-pooled.js
@@ -8,11 +8,11 @@ const bench = common.createBenchmark(main, {
function main({ n }) {
- var timer = setTimeout(() => {}, 1);
+ let timer = setTimeout(() => {}, 1);
for (let i = 0; i < n; i++) {
setTimeout(cb, 1);
}
- var next = timer._idlePrev;
+ let next = timer._idlePrev;
clearTimeout(timer);
bench.start();