MCPcopy Index your code
hub / github.com/nodejs/node / [kQuestion]

Method [kQuestion]

lib/internal/readline/interface.js:439–451  ·  view source on GitHub ↗
(query, cb)

Source from the content-addressed store, hash-verified

437 }
438
439 [kQuestion](query, cb) {
440 if (this.closed) {
441 throw new ERR_USE_AFTER_CLOSE('readline');
442 }
443 if (this[kQuestionCallback]) {
444 this.prompt();
445 } else {
446 this[kOldPrompt] = this[kPrompt];
447 this.setPrompt(query);
448 this[kQuestionCallback] = cb;
449 this.prompt();
450 }
451 }
452
453 [kSetLine](line = '') {
454 this.line = line;

Callers

nothing calls this directly

Calls 2

promptMethod · 0.95
setPromptMethod · 0.95

Tested by

no test coverage detected