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.
2 parents d46360d + 3f2217e commit 2116df0Copy full SHA for 2116df0
packages/grpc-reflection/src/implementations/reflection-v1.ts
@@ -314,8 +314,8 @@ export class ReflectionV1Implementation {
314
315
private getFileDependencies(file: IFileDescriptorProto): IFileDescriptorProto[] {
316
const visited: Set<IFileDescriptorProto> = new Set();
317
- const toVisit: IFileDescriptorProto[] = this.fileDependencies.get(file) || [];
318
-
+ const toVisit: IFileDescriptorProto[] = [...(this.fileDependencies.get(file) || [])];
+
319
while (toVisit.length > 0) {
320
const current = toVisit.pop();
321
0 commit comments