Skip to content

Commit 3999021

Browse files
EmiltayebRafaelGSS
authored andcommitted
test_runner: switched to internal readline interface
Switched to using internal interface after PR-URL: #54000 Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
1 parent 10bea42 commit 3999021

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/internal/test_runner/runner.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ const { spawn } = require('child_process');
3232
const { finished } = require('internal/streams/end-of-stream');
3333
const { resolve } = require('path');
3434
const { DefaultDeserializer, DefaultSerializer } = require('v8');
35-
// TODO(aduh95): switch to internal/readline/interface when backporting to Node.js 16.x is no longer a concern.
36-
const { createInterface } = require('readline');
35+
const { Interface } = require('internal/readline/interface');
3736
const { deserializeError } = require('internal/error_serdes');
3837
const { Buffer } = require('buffer');
3938
const { FilesWatcher } = require('internal/watch_mode/files_watcher');
@@ -354,7 +353,7 @@ function runTestFile(path, filesWatcher, opts) {
354353
subtest.parseMessage(data);
355354
});
356355

357-
const rl = createInterface({ __proto__: null, input: child.stderr });
356+
const rl = new Interface({ __proto__: null, input: child.stderr });
358357
rl.on('line', (line) => {
359358
if (isInspectorMessage(line)) {
360359
process.stderr.write(line + '\n');

0 commit comments

Comments
 (0)