benchmark: use const instead of var in async_hooks

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Daniele Belardi authored and Michaël Zasso committed 2020-04-28 16:14:52 +02:00
1 parent d7f1add038
commit d205bc91d4
1 file changed
+1 -1
@@ -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];
}