mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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:
1 parent
d8f44bc2ed
commit
435fe977e0
1 file changed
+1
-1
@@ -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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user