+2
-3
lines changedFilter options
+2
-3
lines changed Original file line number Diff line number Diff line change
@@ -32,8 +32,7 @@ const { spawn } = require('child_process');
32
32
const { finished } = require('internal/streams/end-of-stream');
33
33
const { resolve } = require('path');
34
34
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');
37
36
const { deserializeError } = require('internal/error_serdes');
38
37
const { Buffer } = require('buffer');
39
38
const { FilesWatcher } = require('internal/watch_mode/files_watcher');
@@ -354,7 +353,7 @@ function runTestFile(path, filesWatcher, opts) {
354
353
subtest.parseMessage(data);
355
354
});
356
355
357
-
const rl = createInterface({ __proto__: null, input: child.stderr });
356
+
const rl = new Interface({ __proto__: null, input: child.stderr });
358
357
rl.on('line', (line) => {
359
358
if (isInspectorMessage(line)) {
360
359
process.stderr.write(line + '\n');
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4