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

readline: check for null input in question() #37089

Closed
wants to merge 1 commit into from

Conversation

cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Jan 27, 2021

question() checks for objects passed as the recently added options argument. This commit improves that logic to also check for null.

question() checks for objects passed as the recently added options
argument. This commit improves that logic to also check for null.
@nodejs-github-bot nodejs-github-bot added the readline Issues and PRs related to the built-in readline module. label Jan 27, 2021
@nodejs-github-bot
Copy link
Collaborator

@cjihrig cjihrig added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 27, 2021
Lxxyx pushed a commit that referenced this pull request Jan 29, 2021
question() checks for objects passed as the recently added options
argument. This commit improves that logic to also check for null.

PR-URL: #37089
Reviewed-By: Zijian Liu <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
@Lxxyx
Copy link
Member

Lxxyx commented Jan 29, 2021

Landed in b02030d

@Lxxyx Lxxyx closed this Jan 29, 2021
@cjihrig cjihrig deleted the error branch January 29, 2021 14:46
targos pushed a commit that referenced this pull request Feb 2, 2021
question() checks for objects passed as the recently added options
argument. This commit improves that logic to also check for null.

PR-URL: #37089
Reviewed-By: Zijian Liu <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
@targos targos mentioned this pull request Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. readline Issues and PRs related to the built-in readline module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants