node/test/parallel/test-repl-no-terminal.js
Antoine du Hamel fffdaeb4c9 readline: fix behaviour of Interface plugged to a non-terminal output
Fixes: https://github.com/nodejs/node/issues/36773

PR-URL: https://github.com/nodejs/node/pull/36774
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2021-01-06 18:45:16 +01:00

8 lines
209 B
JavaScript

'use strict';
const common = require('../common');
const repl = require('repl');
const r = repl.start({ terminal: false });
r.setupHistory('/nonexistent/file', common.mustSucceed());
process.stdin.unref?.();