Skip to content

Commit e167ab7

Browse files
committedSep 20, 2017
benchmark: var to const
PR-URL: nodejs#13757 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent b1c8f15 commit e167ab7

File tree

120 files changed

+682
-682
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+682
-682
lines changed
 

‎benchmark/_benchmark_progress.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
const readline = require('readline');
44

55
function pad(input, minLength, fill) {
6-
var result = String(input);
7-
var padding = fill.repeat(Math.max(0, minLength - result.length));
6+
const result = String(input);
7+
const padding = fill.repeat(Math.max(0, minLength - result.length));
88
return `${padding}${result}`;
99
}
1010

‎benchmark/arrays/var-int.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function main(conf) {
2323
const n = +conf.n;
2424

2525
bench.start();
26-
var arr = new clazz(n * 1e6);
26+
const arr = new clazz(n * 1e6);
2727
for (var i = 0; i < 10; ++i) {
2828
run();
2929
}

0 commit comments

Comments
 (0)
Please sign in to comment.