Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc0262c1

Browse files
Emiltayebmarco-ippolito
authored andcommitted
test_runner: switched to internal readline interface
Switched to using internal interface afterPR-URL:#54000Reviewed-By: Chemi Atlow <chemi@atlow.co.il>Reviewed-By: Moshe Atlow <moshe@atlow.co.il>Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent61b90e7 commitc0262c1

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)

[8]ページ先頭

©2009-2025 Movatter.jp