Skip to content

Commit c0262c1

Browse files
Emiltayebmarco-ippolito
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 61b90e7 commit c0262c1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎lib/internal/test_runner/runner.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ const{spawn } = require('child_process');
3131
const{ readdirSync, statSync }=require('fs');
3232
const{ finished }=require('internal/streams/end-of-stream');
3333
const{ DefaultDeserializer, DefaultSerializer }=require('v8');
34-
// TODO(aduh95): switch to internal/readline/interface when backporting to Node.js 16.x is no longer a concern.
35-
const{ createInterface }=require('readline');
34+
const{ Interface }=require('internal/readline/interface');
3635
const{ deserializeError }=require('internal/error_serdes');
3736
const{ Buffer }=require('buffer');
3837
const{ FilesWatcher }=require('internal/watch_mode/files_watcher');
@@ -394,7 +393,7 @@ function runTestFile(path, filesWatcher, opts){
394393
subtest.parseMessage(data);
395394
});
396395

397-
constrl=createInterface({__proto__: null,input: child.stderr});
396+
constrl=newInterface({__proto__: null,input: child.stderr});
398397
rl.on('line',(line)=>{
399398
if(isInspectorMessage(line)){
400399
process.stderr.write(line+'\n');

0 commit comments

Comments
(0)