grpc-js: Make filter stack factory clone with a copy of the array

This commit is contained in:
Michael Lumish 2022-11-11 09:24:15 -08:00
parent dda62637d7
commit 38f2497dae
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ export class FilterStackFactory implements FilterFactory<FilterStack> {
}
clone(): FilterStackFactory {
return new FilterStackFactory(this.factories);
return new FilterStackFactory([...this.factories]);
}
createFilter(): FilterStack {