summaryrefslogtreecommitdiff
path: root/benchmark/util/priority-queue.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/util/priority-queue.js')
-rw-r--r--benchmark/util/priority-queue.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/util/priority-queue.js b/benchmark/util/priority-queue.js
index 9cff7cbbac..ea4601a002 100644
--- a/benchmark/util/priority-queue.js
+++ b/benchmark/util/priority-queue.js
@@ -10,9 +10,9 @@ function main({ n, type }) {
const PriorityQueue = require('internal/priority_queue');
const queue = new PriorityQueue();
bench.start();
- for (var i = 0; i < n; i++)
+ for (let i = 0; i < n; i++)
queue.insert(Math.random() * 1e7 | 0);
- for (i = 0; i < n; i++)
+ for (let i = 0; i < n; i++)
queue.shift();
bench.end(n);
}