We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69154e4 commit 0c8e9eeCopy full SHA for 0c8e9ee
test/async-hooks/verify-graph.js
@@ -23,12 +23,15 @@ function pruneTickObjects(activities) {
23
data: null
24
};
25
26
+ if (!Array.isArray(activities))
27
+ return activities;
28
+
29
while (tickObject.found) {
30
for (let i = 0; i < activities.length; i++) {
31
if (activities[i].type === 'TickObject') {
32
tickObject.index = i;
33
break;
- } else if (i + 1 === activities.length) {
34
+ } else if (i + 1 >= activities.length) {
35
tickObject.found = false;
36
}
37
0 commit comments