mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 23:43:09 +01:00
82b3ee776b
PR-URL: https://github.com/nodejs/node/pull/26261 Fixes: https://github.com/nodejs/node/issues/26187 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
16 lines
358 B
JavaScript
16 lines
358 B
JavaScript
'use strict';
|
|
require('../common');
|
|
|
|
process.env.TERM = 'dumb';
|
|
|
|
const repl = require('repl');
|
|
|
|
repl.start('> ');
|
|
process.stdin.push('console.log("foo")\n');
|
|
process.stdin.push('1 + 2\n');
|
|
process.stdin.push('"str"\n');
|
|
process.stdin.push('console.dir({ a: 1 })\n');
|
|
process.stdin.push('{ a: 1 }\n');
|
|
process.stdin.push('\n');
|
|
process.stdin.push('.exit\n');
|