Skip to content

Commit 3f2217e

Browse files
committed
Fix issue #2631
1 parent d46360d commit 3f2217e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/grpc-reflection/src/implementations/reflection-v1.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ export class ReflectionV1Implementation {
314314

315315
private getFileDependencies(file: IFileDescriptorProto): IFileDescriptorProto[] {
316316
const visited: Set<IFileDescriptorProto> = new Set();
317-
const toVisit: IFileDescriptorProto[] = this.fileDependencies.get(file) || [];
318-
317+
const toVisit: IFileDescriptorProto[] = [...(this.fileDependencies.get(file) || [])];
318+
319319
while (toVisit.length > 0) {
320320
const current = toVisit.pop();
321321

0 commit comments

Comments
 (0)