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 d46360d commit 3f2217eCopy full SHA for 3f2217e
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