Skip to content

Commit 2ad7003

Browse files
dnluptargos
authored andcommitted
benchmark: use let instead of var in async_hooks
PR-URL: #30470 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 6908a84 commit 2ad7003

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎benchmark/async_hooks/gc-tracking.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@ function endAfterGC(n) {
2222
}
2323

2424
functionmain({ n, method }){
25-
vari;
2625
switch(method){
2726
case'trackingEnabled':
2827
bench.start();
29-
for(i=0;i<n;i++){
28+
for(leti=0;i<n;i++){
3029
newAsyncResource('foobar');
3130
}
3231
endAfterGC(n);
3332
break;
3433
case'trackingDisabled':
3534
bench.start();
36-
for(i=0;i<n;i++){
35+
for(leti=0;i<n;i++){
3736
newAsyncResource('foobar',{requireManualDestroy: true});
3837
}
3938
endAfterGC(n);

0 commit comments

Comments
 (0)