Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
CR
  • Loading branch information
MoLow committed Sep 12, 2022
commit c7f99b10c52ec428f0da1df462f7cac25dd673bf
5 changes: 3 additions & 2 deletions lib/internal/test_runner/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const {

const { spawn } = require('child_process');
const { readdirSync, statSync } = require('fs');
const readline = require('readline/promises');
// TODO(aduh95): switch to internal/readline/interface when backporting to Node.js 16.x is no longer a concern.
const { createInterface } = require('readline');
const console = require('internal/console/global');
const {
codes: {
Expand Down Expand Up @@ -131,7 +132,7 @@ function runTestFile(path, root, inspectPort) {
});

if (isUsingInspector()) {
const rl = readline.createInterface({ input: child.stderr });
const rl = createInterface({ input: child.stderr });
rl.on('line', (line) => {
if (isInspectorMessage(line)) {
process.stderr.write(line + '\n');
Expand Down