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: nodejs#31794
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
dnlup authored and targos committed Apr 25, 2020
1 parent e5deca7 commit fb1b1fe
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 @@ -51,7 +51,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 fb1b1fe

Please sign in to comment.