GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test_runner: switched to internal readline interface · nodejs/node@3999021

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/test_runner
    • runner.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/test_runner/runner.js‎

Copy file name to clipboardExpand all lines: lib/internal/test_runner/runner.js
+2-3Lines changed: 2 additions & 3 deletions
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 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.