We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85c181a commit 337a865Copy full SHA for 337a865
test/async-hooks/verify-graph.js
@@ -106,7 +106,7 @@ module.exports.printGraph = function printGraph(hooks) {
106
function procesNode(x) {
107
const key = x.type.replace(/WRAP/, '').toLowerCase();
108
if (!ids[key]) ids[key] = 1;
109
- const id = key + ':' + ids[key]++;
+ const id = `${key}:${ids[key]++}`;
110
uidtoid[x.uid] = id;
111
const triggerAsyncId = uidtoid[x.triggerAsyncId] || null;
112
graph.push({ type: x.type, id, triggerAsyncId });
0 commit comments