mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05: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
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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user