Skip to content

Commit

Permalink
benchmark: use const instead of var in async_hooks
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dnlup authored and addaleax committed Mar 30, 2020
1 parent 05111c4 commit b188b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/async_hooks/async-resource-vs-destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function buildCurrentResource(getServe) {
}

function init(asyncId, type, triggerAsyncId, resource) {
var cr = executionAsyncResource();
const cr = executionAsyncResource();
if (cr !== null) {
resource[cls] = cr[cls];
}
Expand Down

0 comments on commit b188b3c

Please sign in to comment.