Skip to content

Commit b188b3c

Browse files
dnlupaddaleax
authored andcommitted
benchmark: use const instead of var in async_hooks
PR-URL: #31794 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 05111c4 commit b188b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/async_hooks/async-resource-vs-destroy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function buildCurrentResource(getServe) {
5454
}
5555

5656
function init(asyncId, type, triggerAsyncId, resource) {
57-
var cr = executionAsyncResource();
57+
const cr = executionAsyncResource();
5858
if (cr !== null) {
5959
resource[cls] = cr[cls];
6060
}

0 commit comments

Comments
 (0)