Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ext/node): add null check for kStreamBaseField #26368

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

bartlomieju
Copy link
Member

It's not guaranteed that kStreamBaseField is not undefined, so
added a check for it.

Closes #26363

@bartlomieju bartlomieju enabled auto-merge (squash) October 17, 2024 22:51
@bartlomieju bartlomieju merged commit 8f3eb9d into denoland:main Oct 17, 2024
17 checks passed
@bartlomieju bartlomieju deleted the add_nullish_check branch October 17, 2024 23:02
bartlomieju added a commit that referenced this pull request Oct 17, 2024
It's not guaranteed that `kStreamBaseField` is not undefined, so
added a check for it.

Closes #26363
@imcotton
Copy link

even better?

this[kStreamBaseField]?.setNoDelay?.(noDelay);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MongoError: Cannot use 'in' operator to search for 'setNoDelay' in undefined
5 participants