MCPcopy Index your code
hub / github.com/nodejs/node / constructor

Method constructor

lib/internal/readline/promises.js:28–36  ·  view source on GitHub ↗
(stream, options = undefined)

Source from the content-addressed store, hash-verified

26 #todo = [];
27
28 constructor(stream, options = undefined) {
29 if (!isWritable(stream))
30 throw new ERR_INVALID_ARG_TYPE('stream', 'Writable', stream);
31 this.#stream = stream;
32 if (options?.autoCommit != null) {
33 validateBoolean(options.autoCommit, 'options.autoCommit');
34 this.#autoCommit = options.autoCommit;
35 }
36 }
37
38 /**
39 * Moves the cursor to the x and y coordinate on the given stream.

Callers

nothing calls this directly

Calls 1

isWritableFunction · 0.50

Tested by

no test coverage detected