mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Fix issue #2631
This commit is contained in:
parent
d46360df74
commit
3f2217e220
@ -314,8 +314,8 @@ export class ReflectionV1Implementation {
|
||||
|
||||
private getFileDependencies(file: IFileDescriptorProto): IFileDescriptorProto[] {
|
||||
const visited: Set<IFileDescriptorProto> = new Set();
|
||||
const toVisit: IFileDescriptorProto[] = this.fileDependencies.get(file) || [];
|
||||
|
||||
const toVisit: IFileDescriptorProto[] = [...(this.fileDependencies.get(file) || [])];
|
||||
|
||||
while (toVisit.length > 0) {
|
||||
const current = toVisit.pop();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user