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 de7b22f commit 4393e0cCopy full SHA for 4393e0c
src/sdam/server_description.ts
@@ -126,6 +126,10 @@ export class ServerDescription {
126
this.me = hello?.me?.toLowerCase() ?? null;
127
this.$clusterTime = hello?.$clusterTime ?? null;
128
this.iscryptd = Boolean(hello?.iscryptd);
129
+
130
+ // NOTE: This actually builds the stack string instead of holding onto the getter and all its
131
+ // associated references. This is done to prevent a memory leak.
132
+ if (options.error) options.error.stack;
133
}
134
135
get hostAddress(): HostAddress {
0 commit comments