Commit 19981ed7 authored by Mattias Runge-Broberg's avatar Mattias Runge-Broberg Committed by Benjamin Gruenbaum
Browse files

readline: add support for the AbortController to the question method

In some cases a question asked needs to be canceled. For instance
it might be desirable to cancel a question when a user presses
ctrl+c and triggers the SIGINT event.
Also an initial empty string was set for this.line since the
cursor methods fail if line is not initialized.
Added custom promisify support to the question method.

PR-URL: https://github.com/nodejs/node/pull/33676


Reviewed-By: default avatarBenjamin Gruenbaum <benjamingr@gmail.com>
parent 2242cbb2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment