mirror of https://github.com/grpc/grpc-node.git
grpc-js: Make filter stack factory clone with a copy of the array
This commit is contained in:
parent
dda62637d7
commit
38f2497dae
|
@ -89,7 +89,7 @@ export class FilterStackFactory implements FilterFactory<FilterStack> {
|
|||
}
|
||||
|
||||
clone(): FilterStackFactory {
|
||||
return new FilterStackFactory(this.factories);
|
||||
return new FilterStackFactory([...this.factories]);
|
||||
}
|
||||
|
||||
createFilter(): FilterStack {
|
||||
|
|
Loading…
Reference in New Issue